mirror of https://github.com/ArduPilot/ardupilot
ArduCopter - navigation - corrected comment in check_missed_wp function to clarify that you've passed the waypoint when the direction to the way point is more than 100 degrees off (not 10 degrees off) from your original bearing towards the waypoint
This commit is contained in:
parent
198ac97914
commit
7dc18b53ad
|
@ -32,7 +32,7 @@ static bool check_missed_wp()
|
|||
int32_t temp;
|
||||
temp = target_bearing - original_target_bearing;
|
||||
temp = wrap_180(temp);
|
||||
return (abs(temp) > 10000); //we pased the waypoint by 10 °
|
||||
return (abs(temp) > 10000); // we passed the waypoint by 100 degrees
|
||||
}
|
||||
|
||||
// ------------------------------
|
||||
|
|
Loading…
Reference in New Issue