View Single Post
  #3   Spotlight this post!  
Unread 20-01-2017, 12:35
arichman1257's Avatar
arichman1257 arichman1257 is offline
VP, Control Systems Captain, Coach
AKA: Alan Richman
FRC #1257 (Parallel Universe)
Team Role: Electrical
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Fanwood, New Jersey, USA, Earth...
Posts: 75
arichman1257 will become famous soon enougharichman1257 will become famous soon enough
Re: Limit full power on victor sp

Quote:
Originally Posted by Oblarg View Post
I don't know labview, but you should be able to just multiply the joystick input by some constant less than 1.
Do this ^^. I do not know how to do it in LabView but it should be a similar method to any other language.
For example, for 75% multiply the value (between -1 and 1) from the stick by 0.75 (called a scale factor). And you will want to do that in whatever function/method you are using to send signals to the motor controller. In C++ (and Java, I think) you would do
Code:
Motor_Controller_Name.Set(Joystick_Input * Scale_Factor)
__________________
1257 Parallel Universe: 2014 - 2017 Seasons
2017: Vice President, Control Systems Captain, Drive Coach
2016: Control Systems Captain, Operator. MAR District Championship Winner, MAR Mt. Olive Event Winner, MAR Bridgewater-Raritan Event Finalist
2015: Control Systems, Operator. MAR North Brunswick Event Finalist
2014: Programming/Electronics Apprentice. MAR Clifton Event Winner
Reply With Quote