|
To use during practice, and for general safety. Also, the values of the joysticks will be set to 0, as will all digital inputs.
Consequently, that code would work in the match, and during practice.
However, I made a mistake - & is reserved for bit math.
This is the right code:
if ((p1_sw_trig = 0) AND (p1_sw_top = 0)) then
'autonomous code
else
'nonautonomous code
endif
|