Go to Post Based on my experience coaching basketball and robotics, there is no doubt in my mind that if a sports coach receives $x then a robotics coach should, too. - dtengineering [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, 17:17
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
Talon Motors

How do you declare talon motors in a program?
I looked around but couldn't find any info on this.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2013, 17:42
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
Wink Re: Talon Motors

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.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-01-2013, 17:57
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Talon Motors

In Java there is a Talon Class, there isn't a similar one under C++?

The Java implementation has different max,min, and deadband values for each of the motor controller used for generating the PWM signal.

So while, interchanging them may work, it may not be completely correct, at least on the Java side.
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2013, 18:07
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,576
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Talon Motors

Quote:
Originally Posted by NotInControl View Post
In Java there is a Talon Class, there isn't a similar one under C++?
Yes there is.

Quote:
Originally Posted by Toa Circuit View Post
You just declare them like as with victors and jaguars- They use the same PWM signal.
If you use the Jaguar class with a Talon (and don't calibrate the Talon), you will end up with reduced range.
Reply With Quote
  #5   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
  #6   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
  #7   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
  #8   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
  #9   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
  #10   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
  #11   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,098
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
  #12   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
  #13   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,098
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 03:35.

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