|
Ok Ok Ok!!! I had the comp_bit inverted. But the fact is the comp_mode bit does not change during the competition.
STANDBY PERIOD: (power on RC and OI)
comp_mode = Low
auton_mode = Low
Robot Controller Analog Outputs = 127
Robot Controller Digital Outputs = 0
Operator Interface Analog Inputs = 127
Operator Interface Digital Inputs = 0
AUTONOMOUS PERIOD:
comp_mode = Low
auton_mode = High
Robot Controller Analog Outputs = Program Control
Robot Controller Digital Outputs = Program Control
Operator Interface Analog Inputs = 127
Operator Interface Digital Inputs = 0
OPERATOR PERIOD:
comp_mode = Low
auton_mode = Low
Robot Controller Analog Outputs = Program Control
Robot Controller Digital Outputs = Program Control
Operator Interface Analog Inputs = Operator Control
Operator Interface Digital Inputs = Operator Control
Sorry for the confusion
BTW
rotatinglight = 1 - comp_mode
AND
rotatinglight = 1
do the same thing.
Tim Tedrow
__________________
Sr. Design Engineer
Caterpillar Inc.
Greenville, SC
KD4EGM
FRC 281 Greenvillains
Infected with the FIRST virus in 2000
Yes, Chute Door!!!
|