[fix] if no baro and no kalman, get vz from gps

This commit is contained in:
Gautier Hattenberger
2013-10-15 18:46:41 +02:00
parent 8f13aef998
commit ce84749114
@@ -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