1 #ifndef SMOOTHCONTROL_H
2 #define SMOOTHCONTROL_H
6 #define SMOOTHCONTROL_TIMEBOMB 20.0f
9 #define SMOOTHCONTROL_DUTY_CYCLE 0.5f
12 #define SMOOTHCONTROL_PREDICTOR_SLOPE 0.8f
15 #define SMOOTHCONTROL_CHAMFER_START 0.75f
42 #endif // SMOOTHCONTROL_H
bool * smoothcontrol_get_ringer(smoothcontrol_state state)
void smoothcontrol_run_thrust(smoothcontrol_state state, float *new_signal)
void smoothcontrol_initialize(smoothcontrol_state *state)
void smoothcontrol_run(smoothcontrol_state state, uint8_t axis_num, float *new_signal)
void smoothcontrol_set_mode(smoothcontrol_state state, uint8_t axis_num, uint8_t mode, uint8_t duty_cycle)
void smoothcontrol_update_dT(smoothcontrol_state state, float dT)
void smoothcontrol_reinit_thrust(smoothcontrol_state state, float new_signal)
void smoothcontrol_next(smoothcontrol_state state)
void smoothcontrol_reinit(smoothcontrol_state state, uint8_t axis_num, float new_signal)
struct smoothcontrol_state_internal * smoothcontrol_state