View Single Post
  #2   Spotlight this post!  
Unread 15-02-2013, 20:38
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
Re: Jaguar - Potentiometer - Position Mode

I finally got around to testing position mode with a potentiometer.

The results.... *drum roll please*....

You receive the number of turns from the Jaguar as a double decimal value.
So you'll receive 0.0000 - 5.0000 for a 5 turn, 0.0000 - 1.0000 for a single.

It's virtually identical to the encoder position mode example. Just change it from an encoder to a pot, and the number of counts to number of turns.

At this point my brain get's a little fuzzy, but, if I recall from my testing, if you don't have PID configured as well, it doesn't move the motor at all.
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics



Last edited by Phalanx : 15-02-2013 at 21:53.
Reply With Quote