mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 18:38:28 -04:00
Adjust Simple mode on the fly.
This commit is contained in:
parent
37f1a574fa
commit
995727383b
@ -1257,10 +1257,11 @@ static void update_navigation()
|
|||||||
// are we in SIMPLE mode?
|
// are we in SIMPLE mode?
|
||||||
if(do_simple){
|
if(do_simple){
|
||||||
// get distance to home
|
// get distance to home
|
||||||
if(home_distance > 1000){
|
if(home_distance > 10){
|
||||||
// 10m
|
// 10m
|
||||||
// we reset the angular offset to be a vector from home to the quad
|
// we reset the angular offset to be a vector from home to the quad
|
||||||
//initial_simple_bearing = home_to_copter_bearing;
|
initial_simple_bearing = home_to_copter_bearing;
|
||||||
|
//Serial.printf("ISB: %d\n", initial_simple_bearing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user