|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
31 #include "generated/airframe.h"
35 #include "pprzlink/messages.h"
39 #error "USE_GPS needs to be 1 to use the Xsens GPS!"
51 #ifndef INS_XSENS700_GPS_ID
52 #define INS_XSENS700_GPS_ID GPS_MULTI_ID
63 uint32_t stamp __attribute__((unused)),
91 uint32_t stamp __attribute__((unused)),
110 void gps_xsens700_init(
void)
115 static void gps_xsens700_publish(
void)
133 #ifdef XSENS_BACKWARDS
139 struct FloatEulerstRates rates = {
167 #ifdef AHRS_TRIGGERED_ATTITUDE_LOOP
180 xsens700.gps.gspeed = fspeed * 100.;
184 xsens700.gps.course = fcourse * 1e7;
187 gps_xsens700_publish();
190 #endif // USE_GPS_XSENS
vector in North East Down coordinates Units: meters
struct FloatVect3 vel
NED velocity in m/s.
#define GPS_VALID_COURSE_BIT
void xsens_parser_event(struct XsensParser *xsensparser)
static void stateSetSpeedNed_f(struct NedCoor_f *ned_speed)
Set ground speed in local NED coordinates (float).
void ins_xsens700_event(void)
#define INS_PITCH_NEUTRAL_DEFAULT
volatile bool new_attitude
#define INS_ROLL_NEUTRAL_DEFAULT
data structure for GPS information
Event structure to store callbacks in a linked list.
static void stateSetPositionUtm_f(struct UtmCoor_f *utm_pos)
Set position from UTM coordinates (float).
struct NedCoor_i ned_vel
speed NED in cm/s
volatile uint8_t msg_received
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
static void stateSetLocalUtmOrigin_f(struct UtmCoor_f *utm_def)
Set the local (flat earth) coordinate frame origin from UTM (float).
Paparazzi floating point math for geodetic calculations.
static float float_vect3_norm(struct FloatVect3 *v)
Device independent GPS code (interface)
#define FLOAT_VECT2_NORM(_v)
static void stateSetBodyRates_f(struct FloatRates *body_rate)
Set vehicle body angular rate (float).
Architecture independent timing functions.
static void handle_ins_msg(void)
struct XsensParser parser
void parse_xsens700_msg(void)
Common code for AP and FBW telemetry.
struct UtmCoor_f utm_float_from_gps(struct GpsState *gps_s, uint8_t zone)
Convenience functions to get utm position from GPS state.
position in UTM coordinates Units: meters
volatile uint32_t nb_sec_rem
remainder of seconds since startup in CPU_TICKS
static void stateSetNedToBodyEulers_f(struct FloatEulers *ned_to_body_eulers)
Set vehicle body attitude from euler angles (float).
static void gps_cb(uint8_t sender_id, uint32_t stamp, struct GpsState *gps_s)
#define INS_XSENS700_GPS_ID
ABI binding for gps data.
volatile uint32_t nb_sec
full seconds since startup
void ins_xsens700_init(void)
volatile uint8_t new_ins_attitude
static void update_state_interface(void)
#define GPS_FIX_3D
3D GPS fix