Detecting when in driver control

  1. 2 weeks ago

    sabarrett328

    Nov 4 Grand Blanc, MI 46838C Major Trouble

    Is there a system variable or something that goes true when the system is in driver control mode? I would like to make a program that plays a sound on the speaker when time is running out to help our team get in tune with perfroming on the field.

    you can use the variable bIfiAutonomousMode, this will be true when running in autonomous and false when in driver control. You can also use the variable bIfiRobotDisabled to test the enabled/disabled state and, for advanced use, the variable nVexRCReceiveState which has information about whether the competition switch and controllers are connected.

  2. last week

    jpearman

    Nov 8 Moderator, ROBOTC Tech Support, V5 Beta Moderator Answer Los Angeles 8888

    you can use the variable bIfiAutonomousMode, this will be true when running in autonomous and false when in driver control. You can also use the variable bIfiRobotDisabled to test the enabled/disabled state and, for advanced use, the variable nVexRCReceiveState which has information about whether the competition switch and controllers are connected.

 

or Sign Up to reply!