mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Landing update for better baro landing
This commit is contained in:
parent
5ab37a346c
commit
67cd412105
@ -366,7 +366,7 @@ static bool verify_land_sonar()
|
||||
}
|
||||
|
||||
if(current_loc.alt < 200 ){
|
||||
wp_control = NO_NAV_MODE;
|
||||
wp_control = NO_NAV_MODE;
|
||||
}
|
||||
|
||||
if(current_loc.alt < 150 ){
|
||||
@ -401,15 +401,15 @@ static bool verify_land_baro()
|
||||
landing_boost++;
|
||||
landing_boost = min(landing_boost, 40);
|
||||
}
|
||||
|
||||
if(current_loc.alt < 200 ){
|
||||
wp_control = NO_NAV_MODE;
|
||||
}
|
||||
|
||||
if(current_loc.alt < 150 ){
|
||||
if(abs(climb_rate) < 20) {
|
||||
landing_boost++;
|
||||
if(ground_detector++ > 30) {
|
||||
//landing_boost = 100;
|
||||
//Serial.print("land_complete\n");
|
||||
land_complete = true;
|
||||
ground_detector = 0;
|
||||
// init disarm motors
|
||||
|
Loading…
Reference in New Issue
Block a user