View Single Post
  #2   Spotlight this post!  
Unread 03-24-2016, 09:14 AM
rrossbach rrossbach is offline
Registered User
AKA: Ron R
FRC #2607 (RoboVikings)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Warrington PA
Posts: 90
rrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to beholdrrossbach is a splendid one to behold
Re: Extending the Talon Class and using with RobotDrive

Quote:
Originally Posted by AlexanderTheOK View Post
[SNIP]...robotDrive doesn't seem to call the overridden set function....[SNIP]
Precisely. Looking at the wpilibj source, RobotDrive.java never calls set(double), it only calls set(double, int) which you haven't overridden.

That latter method has a second parameter to handle the CANJaguar "sync group" - when not using a sync group it's just set to 0; and since you're not extending CANJaguar you can safely ignore it.

So, just override the set(double, int) method, rather than set(double), and it should work.

Hope that helps!
__________________

FIRST Mid-Atlantic Volunteer
FRC Team #2607 Mentor
Reply With Quote