etsi_its_messages v3.4.0
Loading...
Searching...
No Matches
cdd_v2-2-1_getters.h File Reference

Getter functions for the ETSI ITS Common Data Dictionary (CDD) v2.2.1. More...

#include <GeographicLib/UTMUPS.hpp>
#include <etsi_its_msgs_utils/impl/cdd/cdd_getters_common.h>

Go to the source code of this file.

Functions

template<typename Wgs84Angle>
double getWGSHeadingCDD (const Wgs84Angle &heading)
 Get the WGS Heading value.
template<typename Wgs84Angle>
double getWGSHeadingConfidenceCDD (const Wgs84Angle &heading)
 Get the WGS Heading confidence.

Detailed Description

Getter functions for the ETSI ITS Common Data Dictionary (CDD) v2.2.1.

Definition in file cdd_v2-2-1_getters.h.

Function Documentation

◆ getWGSHeadingCDD()

template<typename Wgs84Angle>
double getWGSHeadingCDD ( const Wgs84Angle & heading)
inline

Get the WGS Heading value.

0.0° equals WGS84 North, 90.0° equals WGS84 East, 180.0° equals WGS84 South and 270.0° equals WGS84 West

Parameters
headingto get the WGS Heading value from
Returns
WGS Heading value in degree as decimal number

Definition at line 47 of file cdd_v2-2-1_getters.h.

47{ return ((double)heading.value.value) * 1e-1; }

◆ getWGSHeadingConfidenceCDD()

template<typename Wgs84Angle>
double getWGSHeadingConfidenceCDD ( const Wgs84Angle & heading)
inline

Get the WGS Heading confidence.

0.0° equals WGS84 North, 90.0° equals WGS84 East, 180.0° equals WGS84 South and 270.0° equals WGS84 West

Parameters
headingto get the WGS Heading standard deviation from
Returns
WGS Heading standard deviation in degree as decimal number

Definition at line 59 of file cdd_v2-2-1_getters.h.

59{ return ((double)heading.confidence.value) * 1e-1 / etsi_its_msgs::ONE_D_GAUSSIAN_FACTOR; }