View Single Post
  #9   Spotlight this post!  
Unread 21-01-2017, 16:37
rakosi2 rakosi2 is offline
Registered User
FRC #4160
 
Join Date: Jan 2016
Location: San Diego
Posts: 15
rakosi2 is an unknown quantity at this point
Re: Muliple errors from getting started and past years code

Ok incase someone else has this error to fix it change
LiveWindow *lw = LiveWindow::GetInstance();
SendableChooser *chooser;
to:
frc::LiveWindow* lw = LiveWindow::GetInstance();
frc::SendableChooser<std::string> chooser;

and:
chooser = new SendableChooser();
chooser->AddDefault(autoNameDefault, (void*) &autoNameDefault);
chooser->AddObject(autoNameCustom, (void*) &autoNameCustom);
frc::SmartDashboard::PutData("Auto Modes", chooser);
to:
chooser.AddDefault(autoNameDefault, autoNameDefault);
chooser.AddObject(autoNameCustom, autoNameCustom);
frc::SmartDashboard::PutData("Auto Modes", &chooser);

Last edited by rakosi2 : 21-01-2017 at 16:41.
Reply With Quote