Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ins.c File Reference

Integrated Navigation System interface. More...

#include "subsystems/ins.h"
#include "subsystems/gps.h"
#include "state.h"
#include "generated/flight_plan.h"
+ Include dependency graph for ins.c:

Go to the source code of this file.

Functions

void ins_init_origin_i_from_flightplan (struct LtpDef_i *ltp_def)
 initialize the local origin (ltp_def in fixed point) from flight plan position More...
 
void WEAK ins_reset_local_origin (void)
 INS local origin reset. More...
 
void WEAK ins_reset_altitude_ref (void)
 INS altitude reference reset. More...
 
void WEAK ins_reset_utm_zone (struct UtmCoor_f *utm)
 INS utm zone reset. More...
 

Detailed Description

Integrated Navigation System interface.

Definition in file ins.c.

Function Documentation

void ins_init_origin_i_from_flightplan ( struct LtpDef_i ltp_def)

initialize the local origin (ltp_def in fixed point) from flight plan position

Definition at line 39 of file ins.c.

References LlaCoor_i::alt, LtpDef_i::hmsl, LlaCoor_i::lat, LlaCoor_i::lon, ltp_def_from_lla_i(), and stateSetLocalOrigin_i().

Referenced by ins_int_init(), ins_module_wrapper_init(), and ins_vectornav_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void WEAK 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 65 of file ins.c.

References LlaCoor_i::alt, UtmCoor_f::alt, gps, GpsState::hmsl, LtpDef_i::hmsl, LlaCoor_i::lat, LtpDef_i::lla, GpsState::lla_pos, LlaCoor_i::lon, ltp_def_from_lla_i(), State::ned_origin_i, state, stateSetLocalOrigin_i(), stateSetLocalUtmOrigin_f(), and State::utm_origin_f.

+ Here is the call graph for this function:

void WEAK 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 55 of file ins.c.

References GpsState::ecef_pos, gps, GpsState::hmsl, LtpDef_i::hmsl, ins_mekf_wind_wrapper_Reset, ltp_def_from_ecef_i(), stateSetLocalOrigin_i(), stateSetLocalUtmOrigin_f(), and utm_float_from_gps().

+ Here is the call graph for this function:

void WEAK ins_reset_utm_zone ( struct UtmCoor_f utm)

INS utm zone reset.

Reset UTM zone according the the actual position. Only used with fixedwing firmware. Can be overwritte by specifc INS implementation.

Parameters
utminitial utm zone, returns the corrected utm position

Definition at line 68 of file ins.c.

References gps, GPS_VALID_POS_UTM_BIT, lla_of_utm_f(), stateSetLocalUtmOrigin_f(), utm_of_lla_f(), GpsState::utm_pos, GpsState::valid_fields, UtmCoor_f::zone, and UtmCoor_i::zone.

Referenced by nav_reset_utm_zone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: