mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Set manual_home when home set manually
This commit is contained in:
parent
74868f8c2b
commit
4e175d13c4
@ -1046,6 +1046,7 @@ bool handle_command(struct vehicle_status_s *status_local, const struct safety_s
|
||||
home->lat = global_pos->lat;
|
||||
home->lon = global_pos->lon;
|
||||
home->alt = global_pos->alt;
|
||||
home->manual_home = false;
|
||||
|
||||
home->timestamp = hrt_absolute_time();
|
||||
|
||||
@ -1060,6 +1061,7 @@ bool handle_command(struct vehicle_status_s *status_local, const struct safety_s
|
||||
home->lat = cmd->param5;
|
||||
home->lon = cmd->param6;
|
||||
home->alt = cmd->param7;
|
||||
home->manual_home = true;
|
||||
|
||||
home->timestamp = hrt_absolute_time();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user