etsi_its_messages 2.4.0
Loading...
Searching...
No Matches
cdd_v2-1-1_getters.h File Reference

Getter functions for the ETSI ITS Common Data Dictionary (CDD) v2.1.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

double getLongitudinalAcceleration (const AccelerationComponent &longitudinal_acceleration)
 Get the longitudinal acceleration.
 
double getLateralAcceleration (const AccelerationComponent &lateral_acceleration)
 Get the lateral acceleration.
 

Detailed Description

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

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

Function Documentation

◆ getLateralAcceleration()

double getLateralAcceleration ( const AccelerationComponent & lateral_acceleration)
inline

Get the lateral acceleration.

Parameters
lateralAccelerationto get the lateral acceleration from
Returns
lateral acceleration in m/s^2 as decimal number (left is positive)

Definition at line 55 of file cdd_v2-1-1_getters.h.

55 {
56 return ((int16_t)lateral_acceleration.value.value) * 1e-1;
57}

◆ getLongitudinalAcceleration()

double getLongitudinalAcceleration ( const AccelerationComponent & longitudinal_acceleration)
inline

Get the longitudinal acceleration.

Parameters
longitudinalAccelerationto get the longitudinal acceleration from
Returns
longitudinal acceleration in m/s^2 as decimal number (left is positive)

Definition at line 45 of file cdd_v2-1-1_getters.h.

45 {
46 return ((int16_t)longitudinal_acceleration.value.value) * 1e-1;
47}