Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Ground detection module. More...
#include "ground_detect.h"
#include "filters/low_pass_filter.h"
#include "firmwares/rotorcraft/autopilot_firmware.h"
#include "state.h"
#include "pprzlink/messages.h"
#include "modules/datalink/downlink.h"
Go to the source code of this file.
Macros | |
#define | GROUND_DETECT_COUNTER_TRIGGER 5 |
#define | GROUND_DETECT_FILT_FREQ 5.0 |
#define | DEBUG_GROUND_DETECT TRUE |
Functions | |
void | ground_detect_init () |
bool | ground_detect (void) |
void | ground_detect_periodic () |
void | ground_detect_filter_accel (void) |
Filter the vertical acceleration with a low cutoff frequency. More... | |
Variables | |
Butterworth2LowPass | accel_filter |
bool | disarm_on_not_in_flight = false |
int32_t | counter = 0 |
bool | ground_detected = false |
Ground detection module.
Definition in file ground_detect.c.
#define DEBUG_GROUND_DETECT TRUE |
Definition at line 58 of file ground_detect.c.
#define GROUND_DETECT_COUNTER_TRIGGER 5 |
Definition at line 46 of file ground_detect.c.
#define GROUND_DETECT_FILT_FREQ 5.0 |
Definition at line 49 of file ground_detect.c.
bool ground_detect | ( | void | ) |
Definition at line 67 of file ground_detect.c.
References ground_detected.
void ground_detect_filter_accel | ( | void | ) |
Filter the vertical acceleration with a low cutoff frequency.
Definition at line 150 of file ground_detect.c.
References accel_filter, stateGetAccelNed_f(), update_butterworth_2_low_pass(), and NedCoor_f::z.
void ground_detect_init | ( | void | ) |
Definition at line 60 of file ground_detect.c.
References accel_filter, GROUND_DETECT_FILT_FREQ, and init_butterworth_2_low_pass().
void ground_detect_periodic | ( | void | ) |
Definition at line 78 of file ground_detect.c.
References accel_filter, act_is_servo, actuator_state_filt_vect, agl_dist_valid, agl_dist_value_filtered, autopilot_set_motors_on(), counter, DefaultChannel, DefaultDevice, disarm_on_not_in_flight, g1g2, GROUND_DETECT_COUNTER_TRIGGER, ground_detected, FloatRMat::m, SecondOrderLowPass::o, stateGetAccelNed_f(), stateGetNedToBodyRMat_f(), stateGetSpeedNed_f(), and NedCoor_f::z.
Butterworth2LowPass accel_filter |
Definition at line 51 of file ground_detect.c.
Referenced by ground_detect_filter_accel(), ground_detect_init(), and ground_detect_periodic().
int32_t counter = 0 |
Definition at line 55 of file ground_detect.c.
Referenced by ground_detect_periodic().
bool disarm_on_not_in_flight = false |
Definition at line 53 of file ground_detect.c.
Referenced by ground_detect_periodic().
bool ground_detected = false |
Definition at line 56 of file ground_detect.c.
Referenced by ground_detect(), and ground_detect_periodic().