Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
rpm_sensor.c File Reference
+ Include dependency graph for rpm_sensor.c:

Go to the source code of this file.




static void rpm_sensor_send_motor (struct transport_tx *trans, struct link_device *dev)
void rpm_sensor_init (void)
void rpm_sensor_periodic (void)
uint16_t rpm_sensor_get_rpm (void)


static struct FirstOrderLowPass rpm_lp

Detailed Description

Freek van Tienen RPM sensor based on time difference between pulses

Definition in file rpm_sensor.c.

Macro Definition Documentation


Definition at line 35 of file rpm_sensor.c.

Referenced by rpm_sensor_init().

Function Documentation

uint16_t rpm_sensor_get_rpm ( void  )

Definition at line 67 of file rpm_sensor.c.

References get_pwm_input_period_in_usec(), and RPM_PULSE_PER_RND.

Referenced by rpm_sensor_periodic(), and stabilization_attitude_run().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void rpm_sensor_init ( void  )

Definition at line 50 of file rpm_sensor.c.

References DefaultPeriodic, init_first_order_low_pass(), register_periodic_telemetry(), RPM_FILTER_TAU, rpm_lp, and rpm_sensor_send_motor().

+ Here is the call graph for this function:

void rpm_sensor_periodic ( void  )

Definition at line 60 of file rpm_sensor.c.

References rpm_lp, rpm_sensor_get_rpm(), RPM_SENSOR_ID, and update_first_order_low_pass().

+ Here is the call graph for this function:

static void rpm_sensor_send_motor ( struct transport_tx *  trans,
struct link_device *  dev 

Definition at line 42 of file rpm_sensor.c.

References Electrical::current, electrical, get_first_order_low_pass(), and rpm_lp.

Referenced by rpm_sensor_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

struct FirstOrderLowPass rpm_lp

Definition at line 32 of file rpm_sensor.c.

Referenced by rpm_sensor_init(), rpm_sensor_periodic(), and rpm_sensor_send_motor().