Browse Source

SITL: limit on_ground() check to militer accuracy to prevent bouncing

master
Pierre Kancir 7 years ago committed by Peter Barker
parent
commit
5b0ae42725
  1. 2
      libraries/SITL/SIM_Aircraft.cpp

2
libraries/SITL/SIM_Aircraft.cpp

@ -171,7 +171,7 @@ float Aircraft::hagl() const @@ -171,7 +171,7 @@ float Aircraft::hagl() const
*/
bool Aircraft::on_ground() const
{
return hagl() <= 0;
return hagl() <= 0.001f; // prevent bouncing around ground
}
/*

Loading…
Cancel
Save