mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 15:30:08 +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
|
#if !USE_BAROMETER
|
||||||
float falt = gps.hmsl / 1000.;
|
float falt = gps.hmsl / 1000.;
|
||||||
EstimatorSetAlt(falt);
|
EstimatorSetAlt(falt);
|
||||||
|
if (!alt_kalman_enabled) {
|
||||||
|
ins_alt_dot = -gps.ned_vel.z / 100.;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
utm.alt = ins_alt;
|
utm.alt = ins_alt;
|
||||||
// set position
|
// set position
|
||||||
|
|||||||
Reference in New Issue
Block a user