32 #include "guidance/guidance_h.h"
33 #include "guidance/guidance_v.h"
54 gh_set_ref(zero_vector, zero_vector, zero_vector);
82 gh_set_ref(zero_vector, zero_vector, zero_vector);
void gps_sim_hitl_init(void)
void gh_set_ref(struct Int32Vect2 pos, struct Int32Vect2 speed, struct Int32Vect2 accel)
void gps_sim_hitl_event(void)
void ecef_of_ned_point_i(struct EcefCoor_i *ecef, struct LtpDef_i *def, struct NedCoor_i *ned)
Convert a point in local NED to ECEF.
Main include for ABI (AirBorneInterface).
struct HorizontalGuidanceReference ref
reference calculated from setpoints
#define INT32_SPEED_OF_CM_S_DEN
#define GPS_FIX_3D
3D GPS fix
int32_t hmsl
Height above mean sea level in mm.
uint32_t last_3dfix_ticks
cpu time ticks at last valid 3D fix
int32_t alt
in millimeters above WGS84 reference ellipsoid
uint32_t last_msg_time
cpu time in sec at last received GPS message
struct Int32Vect2 speed
with INT32_SPEED_FRAC
int32_t hmsl
height above mean sea level (MSL) in mm
bool autopilot_in_flight(void)
get in_flight flag
#define INT32_POS_OF_CM_NUM
#define GPS_FIX_NONE
No GPS fix.
Device independent GPS code (interface)
struct EcefCoor_i ecef_pos
position in ECEF in cm
struct LlaCoor_i lla
Reference point in lla.
int32_t guidance_v_zdd_ref
vertical acceleration reference in meter/s^2.
struct HorizontalGuidance guidance_h
int32_t guidance_v_z_ref
altitude reference in meters.
uint32_t gps_sim_hitl_timer
int32_t guidance_v_zd_ref
vertical speed reference in meter/s.
volatile uint32_t nb_sec_rem
remainder of seconds since startup in CPU_TICKS
bool ned_initialized_i
true if local int coordinate frame is initialsed
GPS subsystem simulation from rotorcrafts horizontal/vertical reference system.
void gv_set_ref(int32_t alt, int32_t speed, int32_t accel)
struct LtpDef_i ned_origin_i
Definition of the local (flat earth) coordinate system.
Core autopilot interface common to all firmwares.
struct Int32Vect2 pos
with INT32_POS_FRAC
uint32_t last_3dfix_time
cpu time in sec at last valid 3D fix
#define INT32_POS_OF_CM_DEN
API to get/set the generic vehicle states.
vector in North East Down coordinates
volatile uint32_t nb_sec
full seconds since startup
#define INT32_SPEED_OF_CM_S_NUM
#define INT_VECT2_ZERO(_v)
uint32_t last_msg_ticks
cpu time ticks at last received GPS message
struct Int32Vect2 accel
with INT32_ACCEL_FRAC
struct EcefCoor_i ecef_vel
speed ECEF in cm/s
struct LlaCoor_i lla_pos
position in LLA (lat,lon: deg*1e7; alt: mm over ellipsoid)
#define SysTimeTimerStart(_t)
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
struct GpsState gps
global GPS state
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.