FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to set maximum motor speed using Arcade Drive?

We are not using an encoder. Only using joystick with motor control in arcade drive, which does what we want. Is it possible to set a maximum speed? Scaling the joysticks only seems to change the scaling of the joystick output and not the maximum values allowed, which would slow the motor down at full throttle.

Thanks for any help or advice.

0 Kudos
Message 1 of 4
(6,754 Views)

I think that the easiest thing to do would be to always multiply the speed by a scaling factor immediately before passing it to the Motor Control Set Output.  For example, if you want to set the maximum speed to 60%, just multiply by 0.60.  This way, full throttle on the joystick would only be able to yield a 0.60 maximum to the Motor Control Set Output.

Ryan C.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(4,814 Views)

but how can I slow down the arcade drive, since your example is for an individual engine

Davidrj28_0-1582587776832.png

 

0 Kudos
Message 3 of 4
(3,725 Views)

Please continue the conversation in the topic you just created: slow down the arcade drive  

 

Thanks,

0 Kudos
Message 4 of 4
(3,722 Views)