FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the rate of Acceleration

How can I set the rate of acceleration so when I drive the robot forward it doesn't do a wheeling all the time. My teammates are young and like to hit the joystick hard. I don't want to limit the max speed, but rather set a rate of acceleration so it's a nice slow increase in speed. A visual would be awesome I'm a newbie

0 Kudos
Message 1 of 2
(4,196 Views)

Hello,

We have an example that was created for this purpose.  It is the "Right Limited Motor Speed" found in the New Examples Folder.

The "Desired Speed" could be the joystick reading and the "Maximum Speed Change" would be how you set the rate of acceleration.

https://decibel.ni.com/content/docs/DOC-26316

Regards,

M. Whitaker
ni.com/support
0 Kudos
Message 2 of 2
(2,977 Views)