32 #include "guidance/guidance_v.h"
52 gh_set_ref(zero_vector, zero_vector, zero_vector);
80 gh_set_ref(zero_vector, zero_vector, zero_vector);
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).
#define INT32_SPEED_OF_CM_S_DEN
#define GPS_FIX_3D
3D GPS fix
bool_t gps_available
Is set to TRUE when a new REMOTE_GPS packet is received and parsed.
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
static uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
uint32_t last_msg_time
cpu time in sec at last received GPS message
int32_t hmsl
height above mean sea level in mm
#define INT32_POS_OF_CM_NUM
#define GPS_FIX_NONE
No GPS fix.
Device independent GPS code (interface)
bool_t autopilot_in_flight
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.
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
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.
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
Horizontal guidance for rotorcrafts.
#define INT_VECT2_ZERO(_v)
uint32_t last_msg_ticks
cpu time ticks at last received GPS message
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)
bool_t ned_initialized_i
true if local int coordinate frame is initialsed
void gps_impl_init(void)
GPS initialization.
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.