|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Talon Motors
Quote:
All of the programmers on our team are completely new to FRC, so we are still learning a lot. |
|
#2
|
|||||
|
|||||
|
Actually, looking at the other people's posts, and realizing there actually is a Talon class in C++ (How did I miss that...) you might want to use the Talon class. Basically just substitute "Talon" for "Jaguar" for declaration and initialization, and everything else is the same.
|
|
#3
|
|||
|
|||
|
Re: Talon Motors
You can declare a Talon in C++ by writing
Talon t1 = new Talon(TALON_PORT); when TALON_PORT is an int for the port. Beaware that the RobotDrive class automatically initiallize jaguars when declaring the defult constructor (when the parameters are numbers). So when you use Talons don't decalre it like this: RobotDrive drive = new RobotDrive(1, 2, 3, 4); but like this RobotDrive drive = new RobotDrive(new Talon(1), new Talon(2), new Talon(3), new Talon(4)); Doron |
|
#4
|
|||
|
|||
|
Re: Talon Motors
Also, is the min/max values for the talons the same as jaguars?
If not, what are the min/max values? |
|
#5
|
||||
|
||||
|
Re: Talon Motors
They're the same. -1 to 1.
|
|
#6
|
|||
|
|||
|
Re: Talon Motors
|
|
#7
|
||||
|
||||
|
Re: Talon Motors
FWIW, under the hood they are not the same. Jag and Talon expect different min/max pulse widths. That's why WPILib provides separate drivers for them. |
|
#8
|
|||
|
|||
|
Re: Talon Motors
but on the programming side they are the same?
|
|
#9
|
||||
|
||||
|
Re: Talon Motors
The purpose of the separate drivers is to present a common interface to the programmer.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|