View Single Post
  #46   Spotlight this post!  
Unread 29-01-2016, 23:51
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
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: Andymark rhino drivetrain discussion

Quote:
Originally Posted by jls667 View Post
It turns out my team wants to use Talon SRX with CAN signaling. Here is what I think needs to be done to run Rhino Drive:
1. Each Talon SRX would need a different id.
2. Each Talon SRX would need to be daisy chained.
3. Since my team want 3 motors on each side of the Rhino Drive, we will need 6 Talon SRX controllers.

How do I program 3 motors for left and 3 motors for right? Do I setup RobotDrive1, RobotDrive2 and RobotDrive3 each for 2 motors?

Thanks.
Quick example here.
https://github.com/CrossTheRoadElec/...bot/Robot.java
Basically uses robot drive which takes four CANTalons. Then create two more CANTalons and slave them.

Use tankDrive instead of arcadeDrive.

Alternatively you could just create six CANTalon and directly call Set() to manipulate the motor outputs directly, or to use the advanced control modes (speed/position/vcomp/currentDraw/motionProfile).
Reply With Quote