View Single Post
  #1   Spotlight this post!  
Unread 11-03-2011, 16:01
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
CANJaguar config for pots

Our team has decided to control part of our arm with a jaguar and a potentiometer, and I was looking over the CANJaguar class and had a few questions
(We are controlling a window motor with a big, 2ish foot long piece of 80/20 attached to it, using a joystick, it took -0.6 to move up, and less than 0.1 to move down)

What does turns mean in ConfigPotentiometerTurns?
Would this be all I need to do?
Code:
CANJaguar jag(jagId, kPosition);
jag.SetPositionReference(kPosRef_Potentiometer);
jag.ConfigPotentiometerTurns(?????);
jag.EnableControl();
To set its position to 90 degrees to the right, assuming 0 is up, and its range is 0-120 degrees, what would I tell Set()?
What would the ConfigSoftPositionLimits function be taking if I want to limit it to 0 to 120 degrees?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote