View Single Post
  #7   Spotlight this post!  
Unread 12-03-2011, 00:21
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Joystick question

Quote:
Originally Posted by WizenedEE View Post
Take axis 1 and 2 (or just 2 if you're doing tank drive) and divide them by ((Axis 3 - 1)/2)

Basically make axis 3 from 0 to 1 and divide your other axes by it.
I think you mean multiply by the Axis 3 scale factor ((Axis 3 + 1)/2) (+ so it stays positive). It is getting late... Dividing by a factor ranging from 0-1 would scale up the joystick, making it faster. If you want to consider a more advanced scale function where you can move slowly for a select part of the joystick range then quickly ramp up to full speed read this white paper
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
Reply With Quote