View Single Post
  #2   Spotlight this post!  
Unread 13-01-2009, 18:20
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,658
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Slow acceleration (LabView)

It would help immensely if you could post your code, or a snapshot of the relevant portion of your code. As it is, my questions are, which divide function are you using, floating point divide, or "Quotient and Remainder"? Also, your code as described, will accelerate faster at the beginning and slower towards the end. I don't want to think of how long it'd take your robot to get up to the joystick's command doing it that way. It'd be a very long time, however.

The usual way to do this is to pick a specific number to add to the motor command every loop, until you get to the joystick command. So you'd just add (or subtract), say, 0.001 to the motor command on every loop, and then make sure it's not larger (or smaller) than the joystick value.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote