Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Integrated Navigation System interface. More...
Go to the source code of this file.
Data Structures | |
struct | Ins |
Inertial Navigation System state. More... | |
Macros | |
#define | __DefaultInsRegister(_x) _x ## _register() |
#define | _DefaultInsRegister(_x) __DefaultInsRegister(_x) |
#define | DefaultInsRegister() _DefaultInsRegister(DefaultInsImpl) |
Functions | |
void | ins_register_impl (InsInit init) |
void | ins_init (void) |
INS initialization. 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... | |
Variables | |
struct Ins | ins |
Integrated Navigation System interface.
Definition in file ins.c.
struct Ins |
#define _DefaultInsRegister | ( | _x | ) | __DefaultInsRegister(_x) |
#define DefaultInsRegister | ( | ) | _DefaultInsRegister(DefaultInsImpl) |
Definition at line 44 of file ins.c.
Referenced by ins_init().
void ins_init | ( | void | ) |
INS initialization.
Called at startup. Initializes the global ins struct.
Definition at line 60 of file ins.c.
References DefaultInsRegister, Ins::init, and ins.
Referenced by init_ap(), and main_init().
void ins_register_impl | ( | InsInit | init | ) |
Definition at line 53 of file ins.c.
References Ins::init, init, and ins.
Referenced by ins_altf_register(), ins_float_invariant_register(), ins_gps_passthrough_register(), ins_gps_utm_register(), ins_int_register(), and ins_vectornav_register().
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 95 of file ins.c.
References UtmCoor_f::alt, gps, GpsState::hmsl, ins_altf, InsAltFloat::reset_alt_ref, state, stateSetLocalUtmOrigin_f(), TRUE, and State::utm_origin_f.
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 72 of file ins.c.
References UtmCoor_f::alt, UtmCoor_f::east, UtmCoor_i::east, gps, GpsState::hmsl, ins_altf, LLA_FLOAT_OF_BFP, GpsState::lla_pos, LlaCoor_i::lon, UtmCoor_f::north, UtmCoor_i::north, InsAltFloat::reset_alt_ref, stateSetLocalUtmOrigin_f(), TRUE, utm_of_lla_f(), GpsState::utm_pos, UtmCoor_f::zone, and UtmCoor_i::zone.
void WEAK ins_reset_utm_zone | ( | struct UtmCoor_f * | utm | ) |
INS utm zone reset.
Reset UTM zone according te the actual position. Only used with fixedwing firmware. Can be overwritte by specifc INS implementation.
utm | initial utm zone, returns the corrected utm position |
Definition at line 98 of file ins.c.
References gps, lla_of_utm_f(), GpsState::lla_pos, LlaCoor_i::lon, stateSetLocalUtmOrigin_f(), utm_of_lla_f(), GpsState::utm_pos, UtmCoor_f::zone, and UtmCoor_i::zone.
Referenced by nav_reset_utm_zone().
struct Ins ins |
Definition at line 51 of file ins.c.
Referenced by ins_init(), and ins_register_impl().