36 #include "generated/flight_plan.h"
42 llh_nav0.
lat = NAV_LAT0;
43 llh_nav0.
lon = NAV_LON0;
45 llh_nav0.
alt = NAV_ALT0 + NAV_MSL0;
48 ltp_def->
hmsl = NAV_ALT0;
definition of the local (flat earth) coordinate system
void WEAK ins_reset_utm_zone(struct UtmCoor_f *utm)
INS utm zone reset.
uint8_t valid_fields
bitfield indicating valid fields (GPS_VALID_x_BIT)
Integrated Navigation System interface.
position in UTM coordinates Units: meters
vector in Latitude, Longitude and Altitude
void ltp_def_from_lla_i(struct LtpDef_i *def, struct LlaCoor_i *lla)
struct UtmCoor_i utm_pos
position in UTM (north,east: cm; alt: mm over MSL)
int32_t hmsl
Height above mean sea level in mm.
int32_t alt
in millimeters above WGS84 reference ellipsoid
void WEAK ins_reset_altitude_ref(void)
INS altitude reference reset.
uint8_t zone
UTM zone number.
vector in Latitude, Longitude and Altitude
static void stateSetLocalOrigin_i(struct LtpDef_i *ltp_def)
Set the local (flat earth) coordinate frame origin (int).
Device independent GPS code (interface)
void lla_of_utm_f(struct LlaCoor_f *lla, struct UtmCoor_f *utm)
int32_t lon
in degrees*1e7
void ins_init_origin_i_from_flightplan(struct LtpDef_i *ltp_def)
initialize the local origin (ltp_def in fixed point) from flight plan position
uint8_t zone
UTM zone number.
void WEAK ins_reset_local_origin(void)
INS local origin reset.
struct UtmCoor_f utm_float_from_gps(struct GpsState *gps_s, uint8_t zone)
Convenience functions to get utm position from GPS state.
API to get/set the generic vehicle states.
int32_t lat
in degrees*1e7
#define GPS_VALID_POS_UTM_BIT
static void stateSetLocalUtmOrigin_f(struct UtmCoor_f *utm_def)
Set the local (flat earth) coordinate frame origin from UTM (float).
struct GpsState gps
global GPS state
void utm_of_lla_f(struct UtmCoor_f *utm, struct LlaCoor_f *lla)