Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
Generic Geodetic macros.
Collaboration diagram for Generic Geodetic macros.:

Macros

#define ENU_OF_TO_NED(_po, _pi)
#define VECT2_ENU_OF_TO_NED(_po, _pi)
#define LLA_ASSIGN(_pos, _lat, _lon, _alt)
#define LLA_COPY(_pos1, _pos2)
#define LTP_DEF_COPY(_def1, _def2)
#define UTM_COPY(_u1, _u2)
#define ENU_OF_UTM_DIFF(_pos, _utm1, _utm2)
#define NED_OF_UTM_DIFF(_pos, _utm1, _utm2)
#define UTM_OF_ENU_ADD(_utm, _pos, _utm0)
#define UTM_OF_NED_ADD(_utm, _pos, _utm0)

Detailed Description

Macro Definition Documentation

◆ ENU_OF_TO_NED

◆ ENU_OF_UTM_DIFF

#define ENU_OF_UTM_DIFF ( _pos,
_utm1,
_utm2 )
Value:
{ \
(_pos).x = (_utm1).east - (_utm2).east; \
(_pos).y = (_utm1).north - (_utm2).north; \
(_pos).z = (_utm1).alt - (_utm2).alt; \
}

Definition at line 78 of file pprz_geodetic.h.

Referenced by acInfoCalcPositionEnu_f(), acInfoCalcPositionEnu_i(), nav_land_at_loc(), nav_takeoff_from_loc(), stateCalcPositionEnu_f(), and stateCalcPositionEnu_i().

◆ LLA_ASSIGN

#define LLA_ASSIGN ( _pos,
_lat,
_lon,
_alt )
Value:
{ \
(_pos).lat = (_lat); \
(_pos).lon = (_lon); \
(_pos).alt = (_alt); \
}

Definition at line 52 of file pprz_geodetic.h.

◆ LLA_COPY

#define LLA_COPY ( _pos1,
_pos2 )

◆ LTP_DEF_COPY

#define LTP_DEF_COPY ( _def1,
_def2 )
Value:
{ \
LLA_COPY((_def1).lla, (_def2).lla); \
VECT3_COPY((_def1).ecef, (_def2).ecef); \
RMAT_COPY((_def1).ltp_of_ecef, (_def2).ltp_of_ecef); \
(_def1).hmsl = (_def2).hmsl; \
}

Definition at line 64 of file pprz_geodetic.h.

◆ NED_OF_UTM_DIFF

#define NED_OF_UTM_DIFF ( _pos,
_utm1,
_utm2 )
Value:
{ \
(_pos).x = (_utm1).north - (_utm2).north; \
(_pos).y = (_utm1).east - (_utm2).east; \
(_pos).z = -(_utm1).alt + (_utm2).alt; \
}

Definition at line 84 of file pprz_geodetic.h.

Referenced by stateCalcPositionNed_f(), and stateCalcPositionNed_i().

◆ UTM_COPY

#define UTM_COPY ( _u1,
_u2 )
Value:
{ \
(_u1).north = (_u2).north; \
(_u1).east = (_u2).east; \
(_u1).alt = (_u2).alt; \
(_u1).zone = (_u2).zone; \
}

Definition at line 71 of file pprz_geodetic.h.

Referenced by acInfoSetPositionUtm_f(), acInfoSetPositionUtm_i(), ins_alt_float_update_baro(), set_ac_info_utm(), and utm_int_from_gps().

◆ UTM_OF_ENU_ADD

#define UTM_OF_ENU_ADD ( _utm,
_pos,
_utm0 )
Value:
{ \
(_utm).east = (_utm0).east + (_pos).x; \
(_utm).north = (_utm0).north + (_pos).y; \
(_utm).alt = (_utm0).alt + (_pos).z; \
}

Definition at line 90 of file pprz_geodetic.h.

Referenced by stateCalcPositionLla_f(), stateCalcPositionLla_i(), and stateCalcPositionUtm_f().

◆ UTM_OF_NED_ADD

#define UTM_OF_NED_ADD ( _utm,
_pos,
_utm0 )
Value:
{ \
(_utm).east = (_utm0).east + (_pos).y; \
(_utm).north = (_utm0).north + (_pos).x; \
(_utm).alt = (_utm0).alt - (_pos).z; \
}

Definition at line 96 of file pprz_geodetic.h.

Referenced by stateCalcPositionLla_f(), stateCalcPositionLla_i(), and stateCalcPositionUtm_f().

◆ VECT2_ENU_OF_TO_NED

#define VECT2_ENU_OF_TO_NED ( _po,
_pi )
Value:
{ \
(_po).x = (_pi).y; \
(_po).y = (_pi).x; \
}

Definition at line 47 of file pprz_geodetic.h.