mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-16 17:40:36 +08:00
State machine fixes for HIL
This commit is contained in:
@@ -307,7 +307,9 @@ void check_waypoints_reached(uint64_t now, const struct vehicle_global_position_
|
||||
{
|
||||
static uint16_t counter;
|
||||
|
||||
if (!global_pos->valid && !local_pos->xy_valid) {
|
||||
if ((!global_pos->valid && !local_pos->xy_valid) ||
|
||||
/* no waypoint */
|
||||
wpm->size == 0) {
|
||||
/* nothing to check here, return */
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user