mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 01:43:34 +08:00
GF range warning limit mavlink critical messages
-only send a mavlink critical message every 3 seconds
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
#include <uORB/topics/home_position.h>
|
||||
#include <controllib/blocks.hpp>
|
||||
#include <controllib/block/BlockParam.hpp>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
#define GEOFENCE_FILENAME "/fs/microsd/etc/geofence.txt"
|
||||
|
||||
@@ -109,6 +110,9 @@ private:
|
||||
home_position_s _home_pos;
|
||||
bool _home_pos_set;
|
||||
|
||||
hrt_abstime _last_horizontal_range_warning;
|
||||
hrt_abstime _last_vertical_range_warning;
|
||||
|
||||
float _altitude_min;
|
||||
float _altitude_max;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user