-
Notifications
You must be signed in to change notification settings - Fork 0
Configuring Bailout Button
It is helpful to have a button, for safety purposes, that stops all motors if the motor is malfunctioning. The library provides functionality to do that.
In config.c:
#define BAILOUT_BTN Btn7D //This is the button that when pressed, causes the bailout procedure
In addition, you need to define a method void bailOut()
which should contain custom procedures to be run during the bailout procedure like global variables to toggle (motors are already automatically shut off). Furthermore, if you want other tasked to be triggered by this bailout, the BAILOUT
variable will change to 1 when the bailout button is pressed
#define BAILOUT_BUTTON Btn7D //This is the button that when pressed, causes the bailout procedure
void bailOut(){
//Execute something here
}
Everything is set up now! If you press BAILOUT_BTN during user control, it will halt all motors and execute your custom bailOut
method.
Beginner Features:
Intermediate Features:
Advanced Features:
Controlling the LCD
Using Autonomous Modes
Custom Pre Auton Procedure
Using Autonomous Modes in User Control
More Remote Functionality
Configuring Bailout Button
Custom User Control Procedure
PID Control
Drive Train Control