Plane: set pressure alt for vtol motors
This commit is contained in:
parent
7c2d13c571
commit
fbd774fde9
@ -556,6 +556,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;
|
||||
|
Loading…
Reference in New Issue
Block a user