mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
Added float specifier to literal to prevent compile error (#14396)
This commit is contained in:
parent
6c127426bd
commit
51c8296f25
1 changed files with 1 additions and 1 deletions
|
@ -625,7 +625,7 @@ static void updateGpsHeadingUsable(float groundspeedGain, float imuCourseError,
|
||||||
gpsHeadingConfidence += fmaxf(groundspeedGain - fabsf(imuCourseError), 0.0f) * dt;
|
gpsHeadingConfidence += fmaxf(groundspeedGain - fabsf(imuCourseError), 0.0f) * dt;
|
||||||
// recenter at 2.5s time constant
|
// recenter at 2.5s time constant
|
||||||
// TODO: intent is to match IMU time constant, approximately, but I don't exactly know how to do that
|
// TODO: intent is to match IMU time constant, approximately, but I don't exactly know how to do that
|
||||||
gpsHeadingConfidence -= 0.4 * dt * gpsHeadingConfidence;
|
gpsHeadingConfidence -= 0.4f * dt * gpsHeadingConfidence;
|
||||||
// if we accumulate enough 'points' over time, the IMU probably is OK
|
// if we accumulate enough 'points' over time, the IMU probably is OK
|
||||||
// will need to reaccumulate after a disarm (will be retained partly for very brief disarms)
|
// will need to reaccumulate after a disarm (will be retained partly for very brief disarms)
|
||||||
canUseGPSHeading = gpsHeadingConfidence > 2.0f;
|
canUseGPSHeading = gpsHeadingConfidence > 2.0f;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue