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;
struct UtmCoor_f utm_float_from_gps(struct GpsState *gps_s, uint8_t zone)
Convenience functions to get utm position from GPS state.
struct GpsState gps
global GPS state
Device independent GPS code (interface)
struct UtmCoor_i utm_pos
position in UTM (north,east: cm; alt: mm over MSL)
uint8_t valid_fields
bitfield indicating valid fields (GPS_VALID_x_BIT)
#define GPS_VALID_POS_UTM_BIT
static struct LtpDef_i ltp_def
int32_t lat
in degrees*1e7
int32_t hmsl
Height above mean sea level in mm.
int32_t alt
in millimeters above WGS84 reference ellipsoid
uint8_t zone
UTM zone number.
int32_t lon
in degrees*1e7
void ltp_def_from_lla_i(struct LtpDef_i *def, struct LlaCoor_i *lla)
vector in Latitude, Longitude and Altitude
definition of the local (flat earth) coordinate system
static void stateSetLocalOrigin_i(struct LtpDef_i *ltp_def)
Set the local (flat earth) coordinate frame origin (int).
static void stateSetLocalUtmOrigin_f(struct UtmCoor_f *utm_def)
Set the local (flat earth) coordinate frame origin from UTM (float).
void WEAK ins_reset_vertical_pos(void)
INS vertical position reset.
void WEAK ins_reset_local_origin(void)
INS local origin reset.
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
void WEAK ins_reset_altitude_ref(void)
INS altitude reference reset.
void WEAK ins_reset_utm_zone(struct UtmCoor_f *utm)
INS utm zone reset.
Integrated Navigation System interface.
void lla_of_utm_f(struct LlaCoor_f *lla, struct UtmCoor_f *utm)
void utm_of_lla_f(struct UtmCoor_f *utm, struct LlaCoor_f *lla)
uint8_t zone
UTM zone number.
vector in Latitude, Longitude and Altitude
position in UTM coordinates Units: meters
API to get/set the generic vehicle states.