View Single Post
  #4   Spotlight this post!  
Unread 12-02-2015, 23:25
itwasntme455 itwasntme455 is offline
Registered User
AKA: Brandon
FRC #4791 (Pandroids)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2013
Location: South Bend, Indiana
Posts: 26
itwasntme455 is an unknown quantity at this point
Re: max drive speed limiter

Quote:
Originally Posted by Alan Anderson View Post
You can run the joystick axis value through an In Range and Coerce function to clip it at whatever maximum value you want, but that will just mean some of the physical joystick travel will be of no use.

You can multiply the joystick axis value by a percentage. That will maintain the full range of joystick travel, while making the maximum value whatever percent you chose.
So if we want the max to be 50%, how would I do that? What is an "In Range and Coerce" function?
Reply With Quote