pub enum CompetitionMode {
Disabled,
Autonomous,
Opcontrol,
}Expand description
Represents a possible mode that robots can be set in during the competition lifecycle.
Variants§
Disabled
The Disabled competition mode.
When in disabled mode, voltage commands to motors are disabled. Motors are forcibly locked to the “coast” brake mode and cannot be moved.
Robots may be placed into disabled mode at any point in the competition after connecting, but are typically disabled before the autonomous period, between autonomous and opcontrol periods, and following the opcontrol period of a match.
Autonomous
The Autonomous competition mode.
When in autonomous mode, all motors and sensors may be accessed, however user input from controller buttons and joysticks is not available to be read.
Robots may be placed into autonomous mode at any point in the competition after connecting, but are typically placed into this mode at the start of a match.
Opcontrol
The Opcontrol competition mode.
When in opcontrol mode, all device access is available including access to controller joystick values for reading user-input from drive team members.
Robots may be placed into opcontrol mode at any point in the competition after connecting, but are typically placed into this mode following the autonomous period.
Trait Implementations§
Source§impl Clone for CompetitionMode
impl Clone for CompetitionMode
Source§fn clone(&self) -> CompetitionMode
fn clone(&self) -> CompetitionMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more