28 #if (STABILIZATION_FILTER_COMMANDS_ROLL_PITCH || STABILIZATION_FILTER_COMMANDS_YAW)
34 #if STABILIZATION_FILTER_CMD_ROLL_PITCH
35 #ifndef STABILIZATION_FILTER_CMD_ROLL_CUTOFF
36 #define STABILIZATION_FILTER_CMD_ROLL_CUTOFF 20.0
39 #ifndef STABILIZATION_FILTER_CMD_PITCH_CUTOFF
40 #define STABILIZATION_FILTER_CMD_PITCH_CUTOFF 20.0
47 #if STABILIZATION_FILTER_CMD_YAW
48 #ifndef STABILIZATION_FILTER_CMD_YAW_CUTOFF
49 #define STABILIZATION_FILTER_CMD_YAW_CUTOFF 20.0
62 #if STABILIZATION_FILTER_CMD_ROLL_PITCH
69 #if STABILIZATION_FILTER_CMD_YAW
78 #if STABILIZATION_FILTER_CMD_ROLL_PITCH
85 #if STABILIZATION_FILTER_CMD_YAW
Simple first order low pass filter with bilinear transform.
void stabilization_filter_commands(void)
void stabilization_init(void)
static void init_second_order_low_pass_int(struct SecondOrderLowPass_int *filter, float cut_off, float Q, float sample_time, int32_t value)
Init second order low pass filter(fixed point version).
static int32_t update_second_order_low_pass_int(struct SecondOrderLowPass_int *filter, int32_t value)
Update second order low pass filter state with a new value(fixed point version).
General stabilization interface for rotorcrafts.
int32_t stabilization_cmd[COMMANDS_NB]
Stabilization commands.
int32_t i[2]
input history