mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Plane: set pressure alt for vtol motors
This commit is contained in:
parent
097ef85598
commit
64327786c5
@ -544,6 +544,10 @@ void Plane::update_alt()
|
|||||||
{
|
{
|
||||||
barometer.update();
|
barometer.update();
|
||||||
|
|
||||||
|
if (quadplane.available()) {
|
||||||
|
quadplane.motors->set_air_density_ratio(barometer.get_air_density_ratio());
|
||||||
|
}
|
||||||
|
|
||||||
// calculate the sink rate.
|
// calculate the sink rate.
|
||||||
float sink_rate;
|
float sink_rate;
|
||||||
Vector3f vel;
|
Vector3f vel;
|
||||||
|
Loading…
Reference in New Issue
Block a user