View Single Post
  #2   Spotlight this post!  
Unread 04-08-2016, 08:05
azaclauson azaclauson is offline
Registered User
FRC #5593
 
Join Date: Jul 2016
Location: Tasmania
Posts: 17
azaclauson is an unknown quantity at this point
Re: Set Driver Station Autonomous Mode Options & Commands

I get the feeling the C++ code shown below, which comes from the wpilib sample robot project, is close. The comments from the sample do state it's for the Java SmartDashboard but they don't explain how to set the chooser options for the LabView dashboard?

Code:
chooser = new SendableChooser();
chooser->AddDefault(autoNameDefault, (void*)&autoNameDefault);
chooser->AddObject(autoNameCustom, (void*)&autoNameCustom);
SmartDashboard::PutData("Auto Modes", chooser);
Reply With Quote