Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   comp_mode (http://www.chiefdelphi.com/forums/showthread.php?t=17553)

powercat 07-02-2003 16:49

comp_mode
 
Do I need to use the comp_mode for anything?

And how will testing at competition be done to ensure autonomous mode is obeyed and operators aren't really driving during this period ?

Code bugs happen, how will they ensure that the robot obeys ?

Just curious. I use the auton_mode to determine if autonomous or user driven.

thanks.

Damian Manda 07-02-2003 16:59

Taken directly from the Default code:
Code:

  Bit 7 of the PB_mode byte (aliased as comp_mode below) indicates the status
 of the Competition Control, either Enabled or Disabled.  This indicates the
  starting and stopping of rounds at the competitions.
  Comp_mode is indicated by a solid "Disabled" LED on the Operator Interface.
  Comp_mode = 1 for Enabled, 0 for Disabled.

In other words, when comp_mode is 1, your robot runs, otherwisw it doesn't

As to the other question, you have to stand behind a line during Autonomous mode, and can only cross it to hit the kill switch. I'm sure someone will make sure noone violates the rule.

--Damian Manda

Nate Smith 07-02-2003 17:08

http://hyperrules.chiefdelphi.com/vi...php?ruleid=265 - From Update 11

For whatever reason, IFI inverted the comp_mode bit from what the comments in the source code say.


All times are GMT -5. The time now is 04:26.

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