OZONE Asylum
Forums
OZONE
Curve algorithms
This page's ID:
30357
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I've got a bit of a strange request... I'm trying to work out an algorithm to calculate a set of points along an acceleration/deceleration curve. The curve itself I suppose could be your average exponential curve up to a set point after which speed is constant. My problem is the algorithm to let me work out the points along the line so I can work out the values I'll need to feed into the program that sets the acceleration at those points. In the end it'll be about 20 points along a 2 second curve, with the Y-axis of the curve being time and the X-axis being a value between 0 and 128. I don't know if I'm explaining this particularly clearly... what I intend to use it for is setting the duty cycle period of a PWM (Pulse Width Modulation) signal to control the speed of a motor in a project I'm working on now. I'll be using an Arduino (google it if you don't know what it is. They're really cool) to control the motor, but I need to feed it the points of the curve. [url=http://sunday.yarinareth.net][img]http://members.ii.net/~skaarjj/tempus.gif[/img][/url] Justice 4 [url=http://www.justice4pat.com]Pat Richard[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »