Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
Simply passes GPS UTM position and velocity through to the state interface. More...
#include "subsystems/ins/ins_gps_passthrough.h"
#include "subsystems/ins.h"
#include <inttypes.h>
#include <math.h>
#include "state.h"
#include "subsystems/gps.h"
#include "firmwares/fixedwing/nav.h"
#include "subsystems/abi.h"
Go to the source code of this file.
Macros | |
#define | INS_PT_GPS_ID GPS_MULTI_ID |
ABI binding for gps data. More... | |
Functions | |
static void | gps_cb (uint8_t sender_id, uint32_t stamp, struct GpsState *gps_s) |
void | ins_gps_passthrough_init (void) |
void | ins_reset_local_origin (void) |
INS local origin reset. More... | |
void | ins_reset_altitude_ref (void) |
INS altitude reference reset. More... | |
Variables | |
static abi_event | gps_ev |
Simply passes GPS UTM position and velocity through to the state interface.
For fixedwing firmware since it sets UTM pos only.
Definition in file ins_gps_passthrough_utm.c.
#define INS_PT_GPS_ID GPS_MULTI_ID |
ABI binding for gps data.
Used for GPS ABI messages.
Definition at line 45 of file ins_gps_passthrough_utm.c.
Referenced by ins_gps_passthrough_init().
Definition at line 50 of file ins_gps_passthrough_utm.c.
References nav_utm_zone0, stateSetPositionUtm_f(), stateSetSpeedNed_f(), utm_float_from_gps(), and NedCoor_f::x.
Referenced by ins_gps_passthrough_init().
void ins_gps_passthrough_init | ( | void | ) |
Definition at line 69 of file ins_gps_passthrough_utm.c.
References LlaCoor_i::alt, DefaultPeriodic, ecef_of_lla_i(), gps_cb(), gps_ev, LtpDef_i::hmsl, ins_gp, INS_PT_GPS_ID, INT32_VECT3_ZERO, LlaCoor_i::lat, LlaCoor_i::lon, InsGpsPassthrough::ltp_accel, InsGpsPassthrough::ltp_def, ltp_def_from_ecef_i(), InsGpsPassthrough::ltp_initialized, InsGpsPassthrough::ltp_pos, InsGpsPassthrough::ltp_speed, nav_utm_east0, nav_utm_north0, nav_utm_zone0, register_periodic_telemetry(), send_ins(), send_ins_ref(), send_ins_z(), stateSetLocalOrigin_i(), stateSetLocalUtmOrigin_f(), and stateSetPositionUtm_f().
void ins_reset_altitude_ref | ( | void | ) |
INS altitude reference reset.
Reset only vertical reference to the current altitude. Does nothing if not implemented by specific INS algorithm.
Definition at line 86 of file ins_gps_passthrough_utm.c.
References UtmCoor_f::alt, gps, GpsState::hmsl, state, stateSetLocalUtmOrigin_f(), and State::utm_origin_f.
void ins_reset_local_origin | ( | void | ) |
INS local origin reset.
Reset horizontal and vertical reference to the current position. Does nothing if not implemented by specific INS algorithm.
INS local origin reset.
Definition at line 78 of file ins_gps_passthrough_utm.c.
References gps, stateSetLocalUtmOrigin_f(), and utm_float_from_gps().
|
static |
Definition at line 48 of file ins_gps_passthrough_utm.c.
Referenced by ins_gps_passthrough_init().