mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
commander: fix COM_HOME_EN missing case
- VEHICLE_CMD_COMPONENT_ARM_DISARM is yet another path that calls set_home_position()
This commit is contained in:
parent
0b1402afe2
commit
71d8b15b73
@ -1656,7 +1656,7 @@ Commander::set_home_position()
|
||||
// Need global and local position fix to be able to set home
|
||||
// but already set the home position in local coordinates if available
|
||||
// in case the global position is only valid after takeoff
|
||||
if (_status_flags.condition_local_position_valid) {
|
||||
if (_param_com_home_en.get() && _status_flags.condition_local_position_valid) {
|
||||
|
||||
// Set home position in local coordinates
|
||||
const vehicle_local_position_s &lpos = _local_position_sub.get();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user