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