Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
trigger_ext.c File Reference

Measure external trigger pulse at PPM input. More...

#include "trigger_ext.h"
#include "modules/sensors/trig_ext_hw.h"
#include "subsystems/gps.h"
#include "mcu_periph/sys_time.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for trigger_ext.c:

Go to the source code of this file.

Functions

void trigger_ext_init (void)
 
void trigger_ext_periodic (void)
 

Detailed Description

Measure external trigger pulse at PPM input.

This measures a trigger pulse length (e.g. duration of a wind turbine rotation) and sends a message with the info.

Definition in file trigger_ext.c.

Function Documentation

void trigger_ext_init ( void  )

Definition at line 41 of file trigger_ext.c.

References T0CCR, trig_ext_init(), TRIG_EXT_PINSEL, TRIG_EXT_PINSEL_BIT, TRIG_EXT_PINSEL_VAL, TRIGGER_CRF, TRIGGER_CRI, TRIGGER_CRR, and trigger_ext_valid.

+ Here is the call graph for this function:

void trigger_ext_periodic ( void  )

Definition at line 46 of file trigger_ext.c.

References ac_id, DefaultChannel, DefaultDevice, delta_t0, gps_tow_from_sys_ticks(), msec_of_sys_time_ticks(), trig_ext_valid, trigger_t0, and TRUE.

+ Here is the call graph for this function: