Plane: set pressure alt for vtol motors

This commit is contained in:
Andrew Tridgell 2020-05-14 16:12:24 +10:00
parent 097ef85598
commit 64327786c5
1 changed files with 4 additions and 0 deletions

View File

@ -544,6 +544,10 @@ void Plane::update_alt()
{
barometer.update();
if (quadplane.available()) {
quadplane.motors->set_air_density_ratio(barometer.get_air_density_ratio());
}
// calculate the sink rate.
float sink_rate;
Vector3f vel;