|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
35 #ifndef RPM_FILTER_TAU
36 #define RPM_FILTER_TAU RPM_SENSOR_PERIODIC_PERIOD
40 #if PERIODIC_TELEMETRY
55 #if PERIODIC_TELEMETRY
73 rpm_meas = ((
uint32_t)1000000 * 60) / period_us;
#define RPM_PULSE_PER_RND
void rpm_sensor_init(void)
static void init_first_order_low_pass(struct FirstOrderLowPass *filter, float tau, float sample_time, float value)
Init first order low pass filter.
static float update_first_order_low_pass(struct FirstOrderLowPass *filter, float value)
Update first order low pass filter state with a new value.
static const struct usb_device_descriptor dev
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
static void rpm_sensor_send_motor(struct transport_tx *trans, struct link_device *dev)
uint16_t rpm_sensor_get_rpm(void)
static struct FirstOrderLowPass rpm_lp
void rpm_sensor_periodic(void)
struct Electrical electrical
First order low pass filter structure.
#define DefaultPeriodic
Set default periodic telemetry.
float current
current in A
Simple first order low pass filter with bilinear transform.