mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
ACM : switched to get_bearing_cd
This commit is contained in:
parent
fb7e5724c7
commit
4aba673b38
@ -79,7 +79,7 @@ static void update_commands()
|
||||
if(tmp_loc.lat == 0){
|
||||
fast_corner = false;
|
||||
}else{
|
||||
int32_t temp = get_bearing(&next_WP, &tmp_loc) - original_target_bearing;
|
||||
int32_t temp = get_bearing_cd(&next_WP, &tmp_loc) - original_target_bearing;
|
||||
temp = wrap_180(temp);
|
||||
fast_corner = abs(temp) < 6000;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user