Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
nav_shakestart.c File Reference
+ Include dependency graph for nav_shakestart.c:

Go to the source code of this file.

Macros

#define NAV_SHAKE_START_ACC_ID   ABI_BROADCAST
 

Functions

static void nav_shake_start_acc_cb (uint8_t sender_id, uint32_t stamp, struct Int32Vect3 *accel)
 
void nav_shakestart_init (void)
 
void nav_shakestart_reset (void)
 
void nav_shakestart_periodic (void)
 
bool nav_shakestart_run (void)
 

Variables

static bool nav_shakestart_detected = false
 
static float nav_shakestart_accel = 0
 
static abi_event nav_shake_start_acc_ev
 

Detailed Description

Author
MAVLab micro.nosp@m.uav@.nosp@m.gmail.nosp@m..com Shake the RPAS for 1 second to start engines

Definition in file nav_shakestart.c.

Macro Definition Documentation

◆ NAV_SHAKE_START_ACC_ID

#define NAV_SHAKE_START_ACC_ID   ABI_BROADCAST

Definition at line 35 of file nav_shakestart.c.

Function Documentation

◆ nav_shake_start_acc_cb()

static void nav_shake_start_acc_cb ( uint8_t  sender_id,
uint32_t  stamp,
struct Int32Vect3 accel 
)
static

Definition at line 45 of file nav_shakestart.c.

References ACCEL_FLOAT_OF_BFP, foo, nav_shakestart_accel, Int32Vect3::x, Int32Vect3::y, and Int32Vect3::z.

Referenced by nav_shakestart_init().

+ Here is the caller graph for this function:

◆ nav_shakestart_init()

void nav_shakestart_init ( void  )

Definition at line 56 of file nav_shakestart.c.

References foo, nav_shake_start_acc_cb(), nav_shake_start_acc_ev, and NAV_SHAKE_START_ACC_ID.

+ Here is the call graph for this function:

◆ nav_shakestart_periodic()

void nav_shakestart_periodic ( void  )

Definition at line 69 of file nav_shakestart.c.

References foo, nav_shakestart_accel, and nav_shakestart_detected.

◆ nav_shakestart_reset()

void nav_shakestart_reset ( void  )

Definition at line 62 of file nav_shakestart.c.

References nav_shakestart_accel, and nav_shakestart_detected.

◆ nav_shakestart_run()

bool nav_shakestart_run ( void  )

Variable Documentation

◆ nav_shake_start_acc_ev

abi_event nav_shake_start_acc_ev
static

Definition at line 43 of file nav_shakestart.c.

Referenced by nav_shakestart_init().

◆ nav_shakestart_accel

float nav_shakestart_accel = 0
static

◆ nav_shakestart_detected

bool nav_shakestart_detected = false
static