Go to Post It'd be nice to have some more data to look at, I like data - Aren_Hill [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-09-2016, 12:46 PM
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 01-09-2016, 03:45 PM
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 516
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-10-2016, 01:05 PM
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
Re: 6 CIM Drive with CANTalon

Omar,

Thank you so much for this!

-Cinnamon Toast
Reply With Quote
  #4   Spotlight this post!  
Unread 02-09-2016, 03:26 PM
bowmanb bowmanb is offline
Registered User
AKA: Bruce Bowman
FRC #3991 (KnightVision)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge
Posts: 26
bowmanb is an unknown quantity at this point
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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