Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
ins_gps_passthrough_utm.c File Reference
#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"
+ Include dependency graph for ins_gps_passthrough_utm.c:

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
 

Detailed Description

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.

Macro Definition Documentation

◆ INS_PT_GPS_ID

#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.

Function Documentation

◆ gps_cb()

static void gps_cb ( uint8_t  sender_id,
uint32_t  stamp,
struct GpsState gps_s 
)
static

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ins_gps_passthrough_init()

◆ ins_reset_altitude_ref()

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.

+ Here is the call graph for this function:

◆ ins_reset_local_origin()

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().

+ Here is the call graph for this function:

Variable Documentation

◆ gps_ev

abi_event gps_ev
static

Definition at line 48 of file ins_gps_passthrough_utm.c.

Referenced by ins_gps_passthrough_init().