View Single Post
  #6   Spotlight this post!  
Unread 14-02-2003, 18:08
Goya Goya is offline
Registered User
#0019 (Big Red)
 
Join Date: Jan 2003
Location: Greenwich, CT
Posts: 35
Goya is an unknown quantity at this point
Send a message via AIM to Goya
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
Reply With Quote