void ecef_of_enu_pos_i(struct EcefCoor_i *ecef, struct LtpDef_i *def, struct EnuCoor_i *enu)
Convert a local ENU position to ECEF.
#define SPEEDS_BFP_OF_REAL(_ef, _ei)
union State::@338 windspeed_i
Horizontal windspeed in north/east/down.
struct EnuCoor_i enu_speed_i
Velocity in East North Up coordinates.
#define RATES_BFP_OF_REAL(_ri, _rf)
bool utm_initialized_f
True if utm origin (float) coordinate frame is initialsed.
void stateCalcVerticalWindspeed_i(void)
#define ECEF_BFP_OF_REAL(_o, _i)
void enu_of_ecef_point_f(struct EnuCoor_f *enu, struct LtpDef_f *def, struct EcefCoor_f *ecef)
void stateCalcAccelNed_i(void)
float h_speed_dir_f
Direction of horizontal ground speed.
void stateCalcHorizontalWindspeed_i(void)
float airspeed_f
Norm of relative air speed.
void enu_of_ecef_pos_i(struct EnuCoor_i *enu, struct LtpDef_i *def, struct EcefCoor_i *ecef)
Convert a ECEF position to local ENU.
void stateCalcAirspeed_i(void)
#define NED_FLOAT_OF_BFP(_o, _i)
void ned_of_ecef_point_f(struct NedCoor_f *ned, struct LtpDef_f *def, struct EcefCoor_f *ecef)
void ned_of_ecef_vect_f(struct NedCoor_f *ned, struct LtpDef_f *def, struct EcefCoor_f *ecef)
struct EcefCoor_i ecef_pos_i
Position in EarthCenteredEarthFixed coordinates.
struct FloatRates body_rates_f
Angular rates in body frame.
void enu_of_ecef_vect_f(struct EnuCoor_f *enu, struct LtpDef_f *def, struct EcefCoor_f *ecef)
struct LtpDef_f ned_origin_f
Definition of the local (flat earth) coordinate system.
void ecef_of_ned_point_f(struct EcefCoor_f *ecef, struct LtpDef_f *def, struct NedCoor_f *ned)
void stateCalcSpeedEnu_f(void)
bool ned_initialized_f
True if local float coordinate frame is initialsed.
struct LlaCoor_i lla_pos_i
Position in Latitude, Longitude and Altitude.
struct LlaCoor_f lla_pos_f
Position in Latitude, Longitude and Altitude.
struct EcefCoor_f ecef_pos_f
Position in EarthCenteredEarthFixed coordinates.
float h_speed_norm_f
Norm of horizontal ground speed.
struct EcefCoor_i ecef_accel_i
Acceleration in EarthCenteredEarthFixed coordinates.
struct NedCoor_i ned_speed_i
Velocity in North East Down coordinates.
uint8_t rate_status
Holds the status bits for all angular rate representations.
void ecef_of_enu_point_f(struct EcefCoor_f *ecef, struct LtpDef_f *def, struct EnuCoor_f *enu)
void stateCalcPositionEcef_f(void)
#define SPEED_FLOAT_OF_BFP(_ai)
void stateCalcBodyRates_i(void)
int32_t h_speed_dir_i
Direction of horizontal ground speed.
void enu_of_lla_point_f(struct EnuCoor_f *enu, struct LtpDef_f *def, struct LlaCoor_f *lla)
#define SPEEDS_FLOAT_OF_BFP(_ef, _ei)
void stateCalcHorizontalSpeedNorm_i(void)
void ecef_of_ned_vect_f(struct EcefCoor_f *ecef, struct LtpDef_f *def, struct NedCoor_f *ned)
#define NED_BFP_OF_REAL(_o, _i)
void ned_of_ecef_vect_i(struct NedCoor_i *ned, struct LtpDef_i *def, struct EcefCoor_i *ecef)
Rotate a vector from ECEF to NED.
void stateCalcSpeedNed_f(void)
#define ACCELS_BFP_OF_REAL(_ef, _ei)
#define INT32_VECT3_NED_OF_ENU(_o, _i)
struct NedCoor_f ned_pos_f
Position in North East Down coordinates.
struct NedCoor_i ned_accel_i
Acceleration in North East Down coordinates.
void stateCalcSpeedEnu_i(void)
#define FLOAT_VECT2_NORM(_v)
uint16_t speed_status
Holds the status bits for all ground speed representations.
#define RATES_FLOAT_OF_BFP(_rf, _ri)
void ned_of_ecef_pos_i(struct NedCoor_i *ned, struct LtpDef_i *def, struct EcefCoor_i *ecef)
Convert a ECEF position to local NED.
void stateCalcHorizontalSpeedNorm_f(void)
void stateCalcPositionEnu_i(void)
void lla_of_utm_f(struct LlaCoor_f *lla, struct UtmCoor_f *utm)
void stateCalcPositionLla_i(void)
Calculate LLA (int) from any other available representation.
uint8_t accel_status
Holds the status bits for all acceleration representations.
#define ENU_FLOAT_OF_BFP(_o, _i)
uint32_t int32_sqrt(uint32_t in)
void stateCalcSpeedEcef_i(void)
void stateCalcPositionUtm_f(void)
void stateCalcPositionNed_f(void)
void ecef_of_lla_f(struct EcefCoor_f *out, struct LlaCoor_f *in)
#define UTM_OF_NED_ADD(_utm, _pos, _utm0)
void ned_of_lla_point_f(struct NedCoor_f *ned, struct LtpDef_f *def, struct LlaCoor_f *lla)
void stateCalcHorizontalSpeedDir_i(void)
struct EnuCoor_f enu_speed_f
Velocity in East North Up coordinates.
void stateCalcAccelEcef_f(void)
uint8_t zone
UTM zone number.
struct UtmCoor_f utm_origin_f
Definition of the origin of Utm coordinate system.
void stateCalcAccelNed_f(void)
#define VECT3_ENU_OF_NED(_o, _i)
void ned_of_lla_pos_i(struct NedCoor_i *ned, struct LtpDef_i *def, struct LlaCoor_i *lla)
Convert a point from LLA to local NED.
#define ACCELS_FLOAT_OF_BFP(_ef, _ei)
void stateCalcBodyRates_f(void)
bool ned_initialized_i
true if local int coordinate frame is initialsed
struct LtpDef_i ned_origin_i
Definition of the local (flat earth) coordinate system.
void stateCalcAccelEcef_i(void)
#define VECT3_NED_OF_ENU(_o, _i)
uint8_t status
Holds the status bits for all orientation representations.
int32_t airspeed_i
Norm of relative wind speed.
void stateCalcSpeedEcef_f(void)
void ecef_of_ned_pos_i(struct EcefCoor_i *ecef, struct LtpDef_i *def, struct NedCoor_i *ned)
Convert a local NED position to ECEF.
API to get/set the generic vehicle states.
Structure holding vehicle state data.
struct Int32Rates body_rates_i
Angular rates in body frame.
void stateCalcPositionEnu_f(void)
uint8_t wind_air_status
Holds the status bits for all wind- and airspeed representations.
#define INT32_COURSE_NORMALIZE(_a)
void stateCalcHorizontalSpeedDir_f(void)
struct NedCoor_f ned_accel_f
Acceleration in North East Down coordinates.
void enu_of_lla_pos_i(struct EnuCoor_i *enu, struct LtpDef_i *def, struct LlaCoor_i *lla)
Convert a point from LLA to local ENU.
#define INT32_VECT3_ENU_OF_NED(_o, _i)
void enu_of_ecef_vect_i(struct EnuCoor_i *enu, struct LtpDef_i *def, struct EcefCoor_i *ecef)
Rotate a vector from ECEF to ENU.
#define LLA_BFP_OF_REAL(_o, _i)
struct UtmCoor_f utm_pos_f
Position in UTM coordinates.
uint32_t h_speed_norm_i
Norm of horizontal ground speed.
struct EcefCoor_f ecef_speed_f
Velocity in EarthCenteredEarthFixed coordinates.
struct EcefCoor_i ecef_speed_i
Velocity in EarthCenteredEarthFixed coordinates.
#define ENU_BFP_OF_REAL(_o, _i)
void stateCalcPositionNed_i(void)
void ecef_of_lla_i(struct EcefCoor_i *out, struct LlaCoor_i *in)
Convert a LLA to ECEF.
void stateCalcAirspeed_f(void)
void stateCalcSpeedNed_i(void)
struct NedCoor_f ned_speed_f
speed in North East Down coordinates
struct EnuCoor_i enu_pos_i
Position in East North Up coordinates.
#define SPEED_BFP_OF_REAL(_af)
uint16_t pos_status
Holds the status bits for all position representations.
void lla_of_ecef_i(struct LlaCoor_i *out, struct EcefCoor_i *in)
Convert a ECEF to LLA.
#define ECEF_FLOAT_OF_BFP(_o, _i)
void stateCalcPositionEcef_i(void)
struct EnuCoor_f enu_pos_f
Position in East North Up coordinates.
void stateCalcPositionLla_f(void)
struct EcefCoor_f ecef_accel_f
Acceleration in EarthCenteredEarthFixed coordinates.
struct OrientationReps ned_to_body_orientation
void lla_of_ecef_f(struct LlaCoor_f *out, struct EcefCoor_f *in)
#define ENU_OF_UTM_DIFF(_pos, _utm1, _utm2)
#define UTM_OF_ENU_ADD(_utm, _pos, _utm0)
#define LLA_FLOAT_OF_BFP(_o, _i)
struct NedCoor_i ned_pos_i
Position in North East Down coordinates.
void stateCalcVerticalWindspeed_f(void)
union State::@339 windspeed_f
Horizontal windspeed.
void utm_of_lla_f(struct UtmCoor_f *utm, struct LlaCoor_f *lla)
int32_t int32_atan2(int32_t y, int32_t x)
void stateCalcHorizontalWindspeed_f(void)
#define NED_OF_UTM_DIFF(_pos, _utm1, _utm2)
void ecef_of_ned_vect_i(struct EcefCoor_i *ecef, struct LtpDef_i *def, struct NedCoor_i *ned)
Rotate a vector from NED to ECEF.