mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
[ins] Properly initialize utm0 altitude in ins_alt_float (#3443)
Doxygen / build (push) Has been cancelled
Doxygen / build (push) Has been cancelled
This commit is contained in:
committed by
GitHub
parent
294baad643
commit
a7af05cc2f
@@ -39,6 +39,7 @@
|
||||
|
||||
#include "generated/airframe.h"
|
||||
#include "generated/modules.h"
|
||||
#include "generated/flight_plan.h"
|
||||
|
||||
#ifdef DEBUG_ALT_KALMAN
|
||||
#include "mcu_periph/uart.h"
|
||||
@@ -100,7 +101,7 @@ void ins_alt_float_update_gps(struct GpsState *gps_s);
|
||||
void ins_alt_float_init(void)
|
||||
{
|
||||
#if USE_INS_NAV_INIT
|
||||
struct UtmCoor_f utm0 = { nav_utm_north0, nav_utm_east0, ground_alt, nav_utm_zone0 };
|
||||
struct UtmCoor_f utm0 = { nav_utm_north0, nav_utm_east0, GROUND_ALT, nav_utm_zone0 };
|
||||
stateSetLocalUtmOrigin_f(MODULE_INS_ALT_FLOAT_ID, &utm0);
|
||||
ins_altf.origin_initialized = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user