added "methods" to header
This commit is contained in:
parent
b3c09c6047
commit
f8d0b85def
2 changed files with 8 additions and 3 deletions
|
|
@ -12,3 +12,11 @@ struct Setpoint {
|
|||
float position; // unitless
|
||||
bool complete; // the setpoint will no longer change
|
||||
};
|
||||
|
||||
// returns the position and velocity at the given time on a trapezoidal motion plan
|
||||
// this could be baked if too computationally expensive
|
||||
// not fully fuzzed
|
||||
struct Setpoint trapezoidal_planner(struct Trapezoidal* trapezoidal, float time);
|
||||
|
||||
// returns the time a given plan will take
|
||||
float trapezoidal_time(struct Trapezoidal* trapezoidal);
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
#include "trapezoidal.h"
|
||||
// trapezoidal impl, not fuzzed
|
||||
|
||||
// returns the position and velocity at the given time on a trapezoidal motion plan
|
||||
// this could be baked if too computationally expensive
|
||||
// not fully fuzzed
|
||||
struct Setpoint trapezoidal_planner(struct Trapezoidal* trapezoidal, float time) {
|
||||
float max_vel = trapezoidal->max_vel;
|
||||
float max_acc = trapezoidal->max_acc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue