#include <aversive.h>
Go to the source code of this file.
Data Structures | |
struct | quadramp_filter |
Functions | |
void | quadramp_init (struct quadramp_filter *q) |
void | quadramp_set_2nd_order_vars (struct quadramp_filter *q, uint32_t var_2nd_ord_pos, uint32_t var_2nd_ord_neg) |
void | quadramp_set_1st_order_vars (struct quadramp_filter *q, uint32_t var_1st_ord_pos, uint32_t var_1st_ord_neg) |
uint8_t | quadramp_is_finished (struct quadramp_filter *q) |
int32_t | quadramp_do_filter (void *data, int32_t in) |
int32_t quadramp_do_filter | ( | void * | data, | |
int32_t | in | |||
) |
Process the ramp
data | should be a (struct quadramp_filter *) pointer | |
in | is the input of the filter |
Definition at line 75 of file quadramp.c.
References quadramp_filter::previous_in, quadramp_filter::previous_out, quadramp_filter::previous_var, quadramp_filter::var_1st_ord_neg, quadramp_filter::var_1st_ord_pos, quadramp_filter::var_2nd_ord_neg, and quadramp_filter::var_2nd_ord_pos.
void quadramp_init | ( | struct quadramp_filter * | q | ) |
Initialization of the filter
Definition at line 31 of file quadramp.c.
References IRQ_LOCK, and IRQ_UNLOCK.
uint8_t quadramp_is_finished | ( | struct quadramp_filter * | q | ) |
Return 1 when (filter_input == filter_output && 1st_ord variation is 0 --speed is 0-- ).
Definition at line 62 of file quadramp.c.
References quadramp_filter::previous_in, quadramp_filter::previous_out, and quadramp_filter::previous_var.
void quadramp_set_1st_order_vars | ( | struct quadramp_filter * | q, | |
uint32_t | var_1st_ord_pos, | |||
uint32_t | var_1st_ord_neg | |||
) |
Definition at line 50 of file quadramp.c.
References IRQ_LOCK, IRQ_UNLOCK, quadramp_filter::var_1st_ord_neg, and quadramp_filter::var_1st_ord_pos.
void quadramp_set_2nd_order_vars | ( | struct quadramp_filter * | q, | |
uint32_t | var_2nd_ord_pos, | |||
uint32_t | var_2nd_ord_neg | |||
) |
Definition at line 39 of file quadramp.c.
References IRQ_LOCK, IRQ_UNLOCK, quadramp_filter::var_2nd_ord_neg, and quadramp_filter::var_2nd_ord_pos.