We are trying to run a V4 Cortex stand-alone, press a button to run a motor 1 second and stop (Robot-C, WIN10)
The code runs fine as long as something is plugged into USB (PC or Controller) but stand-alone the motor just ‘twitches’ for about 1/10s when / as long as the button depressed.
It’s had to say if it is a timeslice issue, the wait() is ignored or ??
WHAT WE’VE DONE
- updated all firmware
- set communication mode USB Only
- move the code into a function, run as a task
- use competition template userctl() and auton()
— if button()
I’m a bit clueless and welcome any thoughts.