mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:18:54 +08:00
navigator: check home position horizontal and vertical validity
This commit is contained in:
committed by
Lorenz Meier
parent
024589d63d
commit
49d82164c6
@@ -150,7 +150,7 @@ public:
|
||||
|
||||
const vehicle_roi_s &get_vroi() { return _vroi; }
|
||||
|
||||
bool home_position_valid() { return (_home_pos.timestamp > 0); }
|
||||
bool home_position_valid() { return (_home_pos.timestamp > 0 && _home_pos.valid_hpos && _home_pos.valid_alt); }
|
||||
|
||||
int get_onboard_mission_sub() { return _onboard_mission_sub; }
|
||||
int get_offboard_mission_sub() { return _offboard_mission_sub; }
|
||||
|
||||
Reference in New Issue
Block a user