AP_GPS:Comform to ardupilot undulation definition

This commit is contained in:
Alexander Keller 2023-05-31 09:48:50 -07:00 committed by Randy Mackay
parent eb5e86ecf0
commit 6f38788575
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ AP_GPS_SBF::process_message(void)
state.location.lng = (int32_t)(temp.Longitude * RAD_TO_DEG_DOUBLE * (double)1e7);
state.location.alt = (int32_t)(((float)temp.Height - temp.Undulation) * 1e2f);
state.have_undulation = true;
state.undulation = temp.Undulation;
state.undulation = -temp.Undulation;
}
if (temp.NrSV != 255) {