gps-fdir-fix #638

Merged
muellerr merged 2 commits from gps-fdir-fix into v2.1.0-dev 2023-05-12 11:16:50 +02:00
2 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ will consitute of a breaking change warranting a new major release:
without an additional PCDU power switch command.
- The PLOC Supervisor handler now waits for the replies to the `SET_TIME` command to verify working
communication.
- Fixed correction for `GPS Altitude` in case the sensor data is out of the expected bonds.
# [v2.0.5] 2023-05-11

View File

@ -573,7 +573,7 @@ void SensorProcessing::processGps(const double gpsLatitude, const double gpsLong
// Altitude FDIR
if (gpsAltitude > gpsParameters->maximumFdirAltitude ||
gpsAltitude < gpsParameters->maximumFdirAltitude) {
gpsAltitude < gpsParameters->minimumFdirAltitude) {
altitude = gpsParameters->fdirAltitude;
} else {
altitude = gpsAltitude;