mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 16:20:36 +08:00
HomePos: check corresponding validity before using data
This commit is contained in:
@@ -162,7 +162,7 @@ public:
|
||||
void reset_vroi() { _vroi = {}; }
|
||||
|
||||
bool home_alt_valid() { return (_home_pos.timestamp > 0 && _home_pos.valid_alt); }
|
||||
bool home_position_valid() { return (_home_pos.timestamp > 0 && _home_pos.valid_alt && _home_pos.valid_hpos); }
|
||||
bool home_position_valid() { return (_home_pos.timestamp > 0 && _home_pos.valid_alt && _home_pos.valid_hpos && _home_pos.valid_lpos); }
|
||||
|
||||
Geofence &get_geofence() { return _geofence; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user