mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-10 15:03:43 +08:00
AP_Soaring: Correct bug with reversed arguments.
This commit is contained in:
committed by
Andrew Tridgell
parent
16b7de4029
commit
7d3ff28974
@@ -13,7 +13,7 @@ Variometer::Variometer(AP_AHRS &ahrs, const AP_Vehicle::FixedWing &parms) :
|
||||
_climb_filter = LowPassFilter<float>(1.0/60.0);
|
||||
}
|
||||
|
||||
void Variometer::update(const float polar_K, const float polar_B, const float polar_Cd0)
|
||||
void Variometer::update(const float polar_K, const float polar_Cd0, const float polar_B)
|
||||
{
|
||||
_ahrs.get_relative_position_D_home(alt);
|
||||
alt = -alt;
|
||||
|
||||
Reference in New Issue
Block a user