mirror of https://github.com/ArduPilot/ardupilot
ACM : switched to get_bearing_cd
This commit is contained in:
parent
132ac7d412
commit
be0559864c
|
@ -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