Quote:
Originally Posted by jmullins16
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.