Function etsi_its_cpm_ts_msgs::access::setAccelerationComponent

Function Documentation

inline void etsi_its_cpm_ts_msgs::access::setAccelerationComponent(AccelerationComponent &acceleration, const int16_t value, const uint8_t confidence = AccelerationConfidence::UNAVAILABLE)

Sets the value and confidence of a AccelerationComponent.

This function sets the value and confidence of a AccelerationComponent object. The value is limited to a specific range, and the confidence is limited to a specific range as well. If the provided value or confidence is out of range, it will be set to the corresponding out-of-range value.

Parameters:
  • acceleration – The AccelerationComponent object to set the value and confidence for.

  • value – The value to set for the AccelerationComponent in dm/s^2.

  • confidence – The confidence to set for the AccelerationComponent in dm/s^2. Default value is AccelerationConfidence::UNAVAILABLE.