Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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

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

Definition at line 41 of file pprz_geodetic.h.

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

◆ 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 
)
Value:
{ \
(_pos1).lat = (_pos2).lat; \
(_pos1).lon = (_pos2).lon; \
(_pos1).alt = (_pos2).alt; \
}

Definition at line 58 of file pprz_geodetic.h.

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

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

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

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

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