View Single Post
  #2   Spotlight this post!  
Unread 09-01-2013, 15:16
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Tweaks to be able to build C++ code from Robot Builder

Quote:
Originally Posted by Bryscus View Post
Guys,
The only thing missing is one of the last steps which is casting "autonomousModes->GetSelected();" to a "Command" type. This doesn't work in C++ and I don't yet have a solution.
- Bryce
Nice resource you've provided!

I just posted an example of creating the SendableChooser for selecting autonomous programs in C++ at the bottom of this page:

http://wpilib.screenstepslive.com/s/...smartdashboard

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute