mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-20 14:55:18 +03:00
Fix Bool Flags Value
This commit is contained in:
parent
3dad1d20ba
commit
84a4c302b1
4 changed files with 10 additions and 10 deletions
|
@ -3143,8 +3143,8 @@ void applyWaypointNavigationAndAltitudeHold(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reset flags */
|
/* Reset flags */
|
||||||
posControl.flags.horizontalPositionDataConsumed = 0;
|
posControl.flags.horizontalPositionDataConsumed = false;
|
||||||
posControl.flags.verticalPositionDataConsumed = 0;
|
posControl.flags.verticalPositionDataConsumed = false;
|
||||||
|
|
||||||
/* Process controllers */
|
/* Process controllers */
|
||||||
navigationFSMStateFlags_t navStateFlags = navGetStateFlags(posControl.navState);
|
navigationFSMStateFlags_t navStateFlags = navGetStateFlags(posControl.navState);
|
||||||
|
@ -3644,7 +3644,7 @@ void navigationInit(void)
|
||||||
posControl.flags.estHeadingStatus = EST_NONE;
|
posControl.flags.estHeadingStatus = EST_NONE;
|
||||||
posControl.flags.estAglStatus = EST_NONE;
|
posControl.flags.estAglStatus = EST_NONE;
|
||||||
|
|
||||||
posControl.flags.forcedRTHActivated = 0;
|
posControl.flags.forcedRTHActivated = false;
|
||||||
posControl.flags.forcedEmergLandingActivated = false;
|
posControl.flags.forcedEmergLandingActivated = false;
|
||||||
posControl.waypointCount = 0;
|
posControl.waypointCount = 0;
|
||||||
posControl.activeWaypointIndex = 0;
|
posControl.activeWaypointIndex = 0;
|
||||||
|
|
|
@ -188,7 +188,7 @@ void applyFixedWingAltitudeAndThrottleController(timeUs_t currentTimeUs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Indicate that information is no longer usable
|
// Indicate that information is no longer usable
|
||||||
posControl.flags.verticalPositionDataConsumed = 1;
|
posControl.flags.verticalPositionDataConsumed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
isPitchAdjustmentValid = true;
|
isPitchAdjustmentValid = true;
|
||||||
|
@ -440,7 +440,7 @@ void applyFixedWingPositionController(timeUs_t currentTimeUs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Indicate that information is no longer usable
|
// Indicate that information is no longer usable
|
||||||
posControl.flags.horizontalPositionDataConsumed = 1;
|
posControl.flags.horizontalPositionDataConsumed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
isRollAdjustmentValid = true;
|
isRollAdjustmentValid = true;
|
||||||
|
@ -480,7 +480,7 @@ int16_t applyFixedWingMinSpeedController(timeUs_t currentTimeUs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Indicate that information is no longer usable
|
// Indicate that information is no longer usable
|
||||||
posControl.flags.horizontalPositionDataConsumed = 1;
|
posControl.flags.horizontalPositionDataConsumed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -235,7 +235,7 @@ static void applyMulticopterAltitudeController(timeUs_t currentTimeUs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Indicate that information is no longer usable
|
// Indicate that information is no longer usable
|
||||||
posControl.flags.verticalPositionDataConsumed = 1;
|
posControl.flags.verticalPositionDataConsumed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update throttle controller
|
// Update throttle controller
|
||||||
|
@ -654,7 +654,7 @@ static void applyMulticopterPositionController(timeUs_t currentTimeUs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Indicate that information is no longer usable
|
// Indicate that information is no longer usable
|
||||||
posControl.flags.horizontalPositionDataConsumed = 1;
|
posControl.flags.horizontalPositionDataConsumed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -774,7 +774,7 @@ static void applyMulticopterEmergencyLandingController(timeUs_t currentTimeUs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Indicate that information is no longer usable
|
// Indicate that information is no longer usable
|
||||||
posControl.flags.verticalPositionDataConsumed = 1;
|
posControl.flags.verticalPositionDataConsumed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update throttle controller
|
// Update throttle controller
|
||||||
|
|
|
@ -102,7 +102,7 @@ void applyRoverBoatPositionController(timeUs_t currentTimeUs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Indicate that information is no longer usable
|
// Indicate that information is no longer usable
|
||||||
posControl.flags.horizontalPositionDataConsumed = 1;
|
posControl.flags.horizontalPositionDataConsumed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
isYawAdjustmentValid = true;
|
isYawAdjustmentValid = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue