Go to Post “Chasing perfection is like trying to find a unicorn. If you go all around the world, you will not find a unicorn. However, you will find a whole freak load of stuff along the way.” - Karthik - Jacob Bendicksen [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 16-01-2013, 18:10
Arrowhead Arrowhead is offline
Registered User
AKA: Daniel Brown
FRC #1369 (1369 Minotaur)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Tampa, Florida
Posts: 49
Arrowhead is an unknown quantity at this point
Re: Talon Motors

Quote:
Originally Posted by Toa Circuit View Post
You just declare them like as with victors and jaguars- They use the same PWM signal.

Code:
Jaguar *motora;
Code:
motora = new Jaguar(1);
Basically, you do not need to code any differently for Victors, Jaguars, or Talons.
Ok, thanks for the info
All of the programmers on our team are completely new to FRC, so we are still learning a lot.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2013, 09:27
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Exclamation Re: Talon Motors

Quote:
Originally Posted by Arrowhead View Post
Ok, thanks for the info
All of the programmers on our team are completely new to FRC, so we are still learning a lot.
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2013, 11:26
Doron_Sivan Doron_Sivan is offline
Registered User
FRC #4590 (GreenBlitz)
Team Role: Programmer
 
Join Date: Oct 2012
Rookie Year: 2013
Location: Israel
Posts: 11
Doron_Sivan is an unknown quantity at this point
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
Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2013, 16:25
Arrowhead Arrowhead is offline
Registered User
AKA: Daniel Brown
FRC #1369 (1369 Minotaur)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Tampa, Florida
Posts: 49
Arrowhead is an unknown quantity at this point
Re: Talon Motors

Also, is the min/max values for the talons the same as jaguars?
If not, what are the min/max values?
Reply With Quote
  #5   Spotlight this post!  
Unread 18-01-2013, 21:43
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Talon Motors

They're the same. -1 to 1.
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote
  #6   Spotlight this post!  
Unread 18-01-2013, 21:55
Arrowhead Arrowhead is offline
Registered User
AKA: Daniel Brown
FRC #1369 (1369 Minotaur)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Tampa, Florida
Posts: 49
Arrowhead is an unknown quantity at this point
Re: Talon Motors

Quote:
Originally Posted by F22Rapture View Post
They're the same. -1 to 1.
Ok, thanks
Reply With Quote
  #7   Spotlight this post!  
Unread 18-01-2013, 22:55
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,062
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
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.

Reply With Quote
  #8   Spotlight this post!  
Unread 18-01-2013, 22:56
Arrowhead Arrowhead is offline
Registered User
AKA: Daniel Brown
FRC #1369 (1369 Minotaur)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Tampa, Florida
Posts: 49
Arrowhead is an unknown quantity at this point
Re: Talon Motors

Quote:
Originally Posted by Ether View Post

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.

but on the programming side they are the same?
Reply With Quote
  #9   Spotlight this post!  
Unread 18-01-2013, 22:57
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,062
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Talon Motors

Quote:
Originally Posted by Arrowhead View Post
but on the programming side they are the same?
The purpose of the separate drivers is to present a common interface to the programmer.


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 18:24.

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