Copter: make terrain-height-stable-when-no-position value stick
The set immediately above this return is completely ineffective without a return statement.
This commit is contained in:
parent
4335951c42
commit
214bc4c282
@ -76,6 +76,7 @@ void Copter::update_ekf_terrain_height_stable()
|
||||
// set to false if no position estimate
|
||||
if (!position_ok() && !ekf_has_relative_position()) {
|
||||
ahrs.set_terrain_hgt_stable(false);
|
||||
return;
|
||||
}
|
||||
|
||||
// consider terrain height stable if vehicle is taking off or landing
|
||||
|
Loading…
Reference in New Issue
Block a user