mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
AP fix attitude hil.
we where waiting on new_data that had no way of getting there.
This commit is contained in:
parent
97aa98015d
commit
1e7adac365
@ -235,6 +235,10 @@ void init_home()
|
|||||||
// -----------------------------
|
// -----------------------------
|
||||||
while (!g_gps->new_data || !g_gps->fix) {
|
while (!g_gps->new_data || !g_gps->fix) {
|
||||||
g_gps->update();
|
g_gps->update();
|
||||||
|
#if HIL_MODE != HIL_MODE_DISABLED
|
||||||
|
// update hil gps so we have new_data
|
||||||
|
gcs_update();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
home.id = MAV_CMD_NAV_WAYPOINT;
|
home.id = MAV_CMD_NAV_WAYPOINT;
|
||||||
|
Loading…
Reference in New Issue
Block a user