Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   6 CIM Drive with CANTalon (http://www.chiefdelphi.com/forums/showthread.php?t=141139)

Cinnamon Toast 01-09-2016 12:46 PM

6 CIM Drive with CANTalon
 
Hi Chief Delphi,

In past years we've used a multitude of different drive trains. Because the RobotDrive class only has support for only 4 motor controllers, we've used pwm splitters to account for any more motors that we want to be contained inside of a Robotdrive object, but I'm not sure how to do something similar with CAN use on the Talon SRX's. I realize that I could easily create my own drive class assuming that I want to drive the robot in tank drive, but I'd like to take advantage of the arcade style drive that the RobotDrive class offers. How would I account for these two extra motors?

-Cinnamon Toast

ozrien 01-09-2016 03:45 PM

Re: 6 CIM Drive with CANTalon
 
You can create additional CANTalons and slave them to the CANTalons that you hooked up to your Robot Drive.

I put together a quick example here...
https://github.com/ozrien/FRC-Exampl...bot/Robot.java

More info in Section 9.1 of the Talon SRX Software Reference Manual to learn more about the Slave/Follower features in the Talon SRX.

Cinnamon Toast 01-10-2016 01:05 PM

Re: 6 CIM Drive with CANTalon
 
Omar,

Thank you so much for this!

-Cinnamon Toast

bowmanb 02-09-2016 03:26 PM

Re: 6 CIM Drive with CANTalon
 
Any hints/help for doing the same in LabView? I've tried slaving like in the CanTalonFollower LV example, but no joy.

I can do arcade with just two motors, but as soon as I try to slave another pair it fails with a bunch of errors mainly referring to PWM channels


All times are GMT -5. The time now is 02:43 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi