mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
Fix bug in FW althold w/o GPS
This commit is contained in:
parent
3f251830b3
commit
4a63f2268b
1 changed files with 1 additions and 2 deletions
|
@ -127,8 +127,7 @@ void applyFixedWingAltitudeController(timeUs_t currentTimeUs)
|
|||
return;
|
||||
}
|
||||
|
||||
if (posControl.flags.hasValidPositionSensor) {
|
||||
// If we have an update on vertical position data - update velocity and accel targets
|
||||
if (posControl.flags.hasValidAltitudeSensor) {
|
||||
if (posControl.flags.verticalPositionDataNew) {
|
||||
const timeDelta_t deltaMicrosPositionUpdate = currentTimeUs - previousTimePositionUpdate;
|
||||
previousTimePositionUpdate = currentTimeUs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue