Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
ins_gps_passthrough_utm.c File Reference

Simply passes GPS UTM position and velocity through to the state interface. More...

#include "modules/ins/ins_gps_passthrough.h"
#include "modules/ins/ins.h"
#include <inttypes.h>
#include <math.h>
#include "state.h"
#include "modules/gps/gps.h"
#include "firmwares/fixedwing/nav.h"
#include "modules/core/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, ned_vel_float_from_gps(), stateSetPositionUtm_f(), stateSetSpeedNed_f(), and utm_float_from_gps().

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

void ins_gps_passthrough_init ( void  )

Definition at line 65 of file ins_gps_passthrough_utm.c.

References gps_cb(), gps_ev, INS_PT_GPS_ID, nav_utm_east0, nav_utm_north0, nav_utm_zone0, stateSetLocalUtmOrigin_f(), and stateSetPositionUtm_f().

+ Here is the call graph for this function:

◆ 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 82 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 74 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().