etsi_its_messages v3.4.0
Loading...
Searching...
No Matches
cdd_v2-2-1_getters.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright Institute for Automotive Engineering (ika), RWTH Aachen University
3
8
9#ifndef ETSI_ITS_MSGS_UTILS_IMPL_CDD_CDD_V2_2_1_GETTERS_H
10#define ETSI_ITS_MSGS_UTILS_IMPL_CDD_CDD_V2_2_1_GETTERS_H
11#include <GeographicLib/UTMUPS.hpp>
12
14
23template <typename Wgs84Angle>
24inline double getWGSHeadingCDD(const Wgs84Angle& heading) { return ((double)heading.value.value) * 1e-1; }
25
34
35template <typename Wgs84Angle>
36inline double getWGSHeadingConfidenceCDD(const Wgs84Angle& heading) { return ((double)heading.confidence.value) * 1e-1 / etsi_its_msgs::ONE_D_GAUSSIAN_FACTOR; }
37
38#endif // ETSI_ITS_MSGS_UTILS_IMPL_CDD_CDD_V2_2_1_GETTERS_H
Common getter functions for the ETSI ITS Common Data Dictionary (CDD) v1.3.1, v2.1....
double getWGSHeadingCDD(const Wgs84Angle &heading)
Get the WGS Heading value.
double getWGSHeadingConfidenceCDD(const Wgs84Angle &heading)
Get the WGS Heading confidence.