added basic accelleration management with trapezoid accelleration profiles but no look ahead optimization (coming next patch)
This commit is contained in:
parent
e0f3dcbe43
commit
b628a4aabf
14 changed files with 129 additions and 108 deletions
12
notes/acceleration.h
Normal file
12
notes/acceleration.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#ifndef acceleration_h
|
||||
#define acceleration_h
|
||||
|
||||
// Estimate the maximum speed at a given distance when you need to reach the given
|
||||
// target_velocity with max_accelleration.
|
||||
double estimate_max_speed(double max_accelleration, double target_velocity, double distance);
|
||||
|
||||
// At what distance must we start accellerating/braking to reach target_speed from current_speed given the
|
||||
// specified constant accelleration.
|
||||
double estimate_brake_distance(double current_speed, double target_speed, double acceleration);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue