Our team is using the dashboard auto chooser. Is there a way of making a second chooser for like motor brakes or some other setting?
Thx.
GitHub link https://github.com/charlier999/FRC1662_RobotCode_2017/blob/master/Emmaleigh/src/Robot.cpp
Of course. Simply make a second SendableChooser and add it
This is how my team used more than one auto SendableChooser on the SmartDashboard:
Robot.h
class Robot : public IterativeRobot {
public:
frc::SendableChooser<frc::Command*> chooser;
};
Robot.cpp
void Robot::RobotInit() {
chooser.AddDefault("Auton Default", new AutonDefault());
chooser.AddObject("Pos 123 Move", new AutonPos123Move());
frc::SmartDashboard::PutData("Auto Modes", &chooser);
}
Following the new, you would call a command for the autonomous mode. Hope this helps!
Alyssa