View Single Post
  #13   Spotlight this post!  
Unread 12-02-2015, 18:17
cstelter cstelter is offline
Programming Mentor
AKA: Craig Stelter
FRC #3018 (Nordic Storm)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Mankato, MN
Posts: 77
cstelter will become famous soon enough
Re: RobotBuilder and CAN Talon SRX

Quote:
Originally Posted by jmullins16 View Post
Has anyone tried to use RobotBuilder to lay out their drive system with PWM controllers and add code to convert it to use CAN devices? It doesn't seem possible without totally rewriting RobotMap.[ch]pp.
We had to work around RobotBuilder to add a custom object we wanted to be our Speed controller. We first set up a RobotDrive and 4 SpeedContollers normally and generated code. Then we removed all that code from BEGIN/END of RobotMap. You also have to remove RobotDrive from RobotBuilder or it will keep regenerating it. So we couldn't modify speed controller ports or RobotDrive parameters from RobotBuilder any more but the code is available for hand editing. Biggest problem is new devices don't know that PWM 0-4 (in our case) are taken.

But you can still work with it. I suspect taking 4 Talon's out and retyping them to TalonSRX could be handled the same way if you can't work out how to use the patches that have been provided in this thread.
Reply With Quote