Go to Post Yes indeed... ten years ago tomorrow, those famous words "water game" were first mentioned on Chief Delphi! Oh, how things have and have not changed... - bduddy [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 08-01-2013, 07:32
rjbarra rjbarra is offline
GameTime
AKA: Joe Barra
FRC #0020 (Rocketeers)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2002
Location: Clifton Park, New York
Posts: 58
rjbarra is just really nicerjbarra is just really nicerjbarra is just really nicerjbarra is just really nice
Speed Control without CAN Jaguars

Has anybody using Java done speed control without the CAN Jaguars? If you have a sample of Java code in would be appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-01-2013, 07:50
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Speed Control without CAN Jaguars

The code for 1646's 2011 robot is on GitHub and it used CANJaguar. Since Jaguar, CANJaguar, Victor, and now Talon all implement the SpeedController interface you should be able to treat them the same in code (an oversimplification of course but the idea is the same).
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2013, 18:23
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Re: Speed Control without CAN Jaguars

Without CAN you simply initiate a Jaguar(or Victor, ect.) object:
Code:
Jaguar climbMotor = new Jaguar(2); //Jaguar on port 2
Then setting the speed uses the set() method:
Code:
climbMotor.set(0); //Speed goes from -1 to 1
__________________
Programmer - A creature known for converting Caffeine into Code.
Studying Computer Science @ Louisiana Tech University
Associate Consultant @ Fenway Group

2012-13: 3946 - Head of Programming, Electrical and Web
2014 - 3468 - Programming Mentor
2015 - Present - Lurker
Reply With Quote
  #4   Spotlight this post!  
Unread 10-01-2013, 18:44
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,561
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: Speed Control without CAN Jaguars

One of the features added to the WPILib PIDController class this year is a feedforward term. This makes tuning speed control PID much easier.
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 10:01.

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