Go to Post Lowering the ceiling is a bad thing, but there's nothing wrong with raising the floor. - magnets [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 20-02-2015, 17:12
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,986
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Motion Profiling


Just for fun and educational purposes, I wrote a Maxima script for sinusoidal accel profile and added it to the paper.

The user enters max allowable acceleration and time-to-destination, and the script computes the equations for distance, speed, acceleration, and jerk versus time.. and plots them.


Attached is a sample graph generated with the script for max accel = 6.3 ft/sec2 and time-to-distance = 3 seconds.

The vehicle goes from x=0, v=0, a=0, and jerk=13.2 at t=0
to x=9, v=0, a=0, and jerk=13.2 at t=3 seconds.


Attached Thumbnails
Click image for larger version

Name:	Sinusoidal Accel Profile.png
Views:	111
Size:	45.0 KB
ID:	18442  
  #2   Spotlight this post!  
Unread 20-02-2015, 20:51
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,986
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Motion Profiling

Quote:
Originally Posted by Ether View Post
Attached is a sample graph generated with the script for max accel = 6.3 ft/sec2 and time-to-distance = 3 seconds.

The vehicle goes from x=0, v=0, a=0, and jerk=13.2 at t=0
to x=9, v=0, a=0, and jerk=13.2 at t=3 seconds.
For comparison, here's a plot using trapezoidal accel, with the same max accel, jerk, and time-to-distance.

The vehicle goes from x=0, v=0, a=0, and jerk=13.2 at t=0
to x=9.7, v=0, a=0, and jerk=13.2 at t=3 seconds.
Attached Thumbnails
Click image for larger version

Name:	Trapezoidal Accel Profile.png
Views:	87
Size:	27.8 KB
ID:	18445  
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:13.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi