mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 06:54:49 +08:00
[fix] if no baro and no kalman, get vz from gps
This commit is contained in:
@@ -140,6 +140,9 @@ void ins_update_gps(void) {
|
||||
#if !USE_BAROMETER
|
||||
float falt = gps.hmsl / 1000.;
|
||||
EstimatorSetAlt(falt);
|
||||
if (!alt_kalman_enabled) {
|
||||
ins_alt_dot = -gps.ned_vel.z / 100.;
|
||||
}
|
||||
#endif
|
||||
utm.alt = ins_alt;
|
||||
// set position
|
||||
|
||||
Reference in New Issue
Block a user