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

This commit is contained in:
Pierre Kancir 2018-09-06 15:38:18 +02:00 committed by Peter Barker
parent 0cf12ad47e
commit 5b0ae42725
1 changed files with 1 additions and 1 deletions

View File

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