Team2122 / RoTator

The potato that spins
4 stars 0 forks source link

Add TrapezoidController for velocity on a trapezoidal graph #120

Open riftEmber opened 8 years ago

riftEmber commented 8 years ago

Closes #109

riftEmber commented 8 years ago

I don't know how to fix it

amikhalev commented 8 years ago

I have commented on what needs to be fixed. This needs to be done today, don't close it. Things that this needs to take in as parameters:

A way to get current distance (input) Initial speed Final speed. Max speed. Max acceleration From here, you should be able to calculate speed based on current time from start of movement. Then you would need to add code which adjusts the current time based on what the current distance is and what it should be