|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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);
struct HorizontalGuidanceReference ref
reference calculated from setpoints
int32_t alt
in millimeters above WGS84 reference ellipsoid
uint32_t gps_sim_hitl_timer
struct LtpDef_i ned_origin_i
Definition of the local (flat earth) coordinate system.
int32_t guidance_v_zdd_ref
vertical acceleration reference in meter/s^2.
struct Int32Vect2 accel
with INT32_ACCEL_FRAC
struct Int32Vect2 speed
with INT32_SPEED_FRAC
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.
#define INT32_POS_OF_CM_NUM
bool ned_initialized_i
true if local int coordinate frame is initialsed
#define INT_VECT2_ZERO(_v)
#define INT32_POS_OF_CM_DEN
int32_t guidance_v_zd_ref
vertical speed reference in meter/s.
bool autopilot_in_flight(void)
get in_flight flag
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
uint32_t last_msg_ticks
cpu time ticks at last received GPS message
Device independent GPS code (interface)
vector in North East Down coordinates
#define INT32_SPEED_OF_CM_S_DEN
uint32_t last_3dfix_time
cpu time in sec at last valid 3D fix
void gps_sim_hitl_init(void)
uint32_t last_3dfix_ticks
cpu time ticks at last valid 3D fix
void gps_sim_hitl_event(void)
uint32_t last_msg_time
cpu time in sec at last received GPS message
struct EcefCoor_i ecef_pos
position in ECEF in cm
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 gh_set_ref(struct Int32Vect2 pos, struct Int32Vect2 speed, struct Int32Vect2 accel)
struct LlaCoor_i lla_pos
position in LLA (lat,lon: deg*1e7; alt: mm over ellipsoid)
int32_t hmsl
Height above mean sea level in mm.
volatile uint32_t nb_sec_rem
remainder of seconds since startup in CPU_TICKS
int32_t hmsl
height above mean sea level (MSL) in mm
struct Int32Vect2 pos
with INT32_POS_FRAC
void gv_set_ref(int32_t alt, int32_t speed, int32_t accel)
struct HorizontalGuidance guidance_h
volatile uint32_t nb_sec
full seconds since startup
struct EcefCoor_i ecef_vel
speed ECEF in cm/s
#define SysTimeTimerStart(_t)
struct GpsState gps
global GPS state
#define GPS_FIX_NONE
No GPS fix.
#define GPS_FIX_3D
3D GPS fix
struct LlaCoor_i lla
Reference point in lla.
#define INT32_SPEED_OF_CM_S_NUM
int32_t guidance_v_z_ref
altitude reference in meters.