Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Robotics Education and Curriculum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=66)
-   -   Autonomous Code (http://www.chiefdelphi.com/forums/showthread.php?t=15185)

Adrian Wong 18-11-2002 21:59

Autonomous Code
 
Anyone have any info on how to program this? Does it just run the mainloop without regards to the SERIN command?

rbayer 18-11-2002 22:34

Somewhat yes, somewhat no.

Basically, it runs the program loop exactly as if it was in non-autonomous mode. The only difference is that all the variables from the OI (p1_x, p1_y, p1_sw_trig, etc) are set to 127 or 0, depending on whether it is an analog or digital input, respectively. The inputs on the RC (rc_sw1, sensor1, etc) still contain the correct values.

One of the bits of the competition mode byte is also set but I can't remember which. It's documented in the default code if you need to know.


All times are GMT -5. The time now is 11:03.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi