View Single Post
  #2   Spotlight this post!  
Unread 04-04-2011, 10:46
Hugh Meyer's Avatar
Hugh Meyer Hugh Meyer is offline
Registered User
FRC #1741 (Red Alert Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Greenwood Indiana
Posts: 158
Hugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud of
Re: ramping in speed/position mode

Marshal,

One solution is to create a motion profile. This is just a series of points that defines all of the positions between the current position and the target position. When you create these points you include the ramp up and down. The more points and the shorter the time between points will create the smoothest motion.

The periodic rate that the code runs at will limit the resolution of points in the time domain. The smaller the step between points gives a smoother motion.

I agree with you that a nice ramp up and down while traveling to the next point would be nice. As best we could tell this is not in the firmware of the Jaguars. The position mode simply tries to go full blast to the next point. Using the motion profile is how we worked around it. We didn't get really smooth motion while traveling slowly because our periodic rate was 100 milliseconds. It worked well on fast moves.

-Hugh
Reply With Quote