View Single Post
  #4   Spotlight this post!  
Unread 30-01-2014, 09:41
omalleyj omalleyj is offline
Registered User
AKA: Jim O'Malley
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: New Jersey
Posts: 132
omalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to behold
Re: How to grdually speed up the robot?

What problem are you trying to solve? Are you trying to prevent spinning your wheels on acceleration? Preventing stress on the drivetrain when reversing direction quickly? Or just generally going for more control and less 'twitchiness'?

Eddie12390 has the right idea, but you need to manage each situation of input. For instance what will happen if you are going full speed and get a joystick input of full forward (-1.0). If you exactly cut and paste that code without at least limiting it you will be out of range for the motor input.

But his concept is sound for the problem as stated: take some percentage between where you are now and where you want to be and apply it. Just make sure you account for all situations.

Last edited by omalleyj : 30-01-2014 at 09:45. Reason: lack of coffee
Reply With Quote