Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Generic Geodetic macros.
+ Collaboration diagram for Generic Geodetic macros.:

Macros

#define 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

#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 73 of file pprz_geodetic.h.

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

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

Definition at line 47 of file pprz_geodetic.h.

#define LLA_COPY (   _pos1,
  _pos2 
)
#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; \
}
#define VECT3_COPY(_a, _b)
Definition: pprz_algebra.h:139
#define RMAT_COPY(_o, _i)
Definition: pprz_algebra.h:637
#define LLA_COPY(_pos1, _pos2)
Definition: pprz_geodetic.h:53

Definition at line 59 of file pprz_geodetic.h.

#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 79 of file pprz_geodetic.h.

Referenced by stateCalcPositionNed_f(), and stateCalcPositionNed_i().

#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 66 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().

#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 85 of file pprz_geodetic.h.

Referenced by stateCalcPositionUtm_f().

#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 91 of file pprz_geodetic.h.

Referenced by stateCalcPositionUtm_f().