Function etsi_its_cpm_ts_msgs::access::setVelocityComponent
Defined in File cpm_ts_setters.h
Function Documentation
-
inline void etsi_its_cpm_ts_msgs::access::setVelocityComponent(VelocityComponent &velocity, const int16_t value, const uint8_t confidence = SpeedConfidence::UNAVAILABLE)
Sets the value and confidence of a VelocityComponent.
This function sets the value and confidence of a VelocityComponent 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:
velocity – The VelocityComponent object to set the value and confidence for.
value – The value to set for the VelocityComponent in cm/s.
confidence – The confidence to set for the VelocityComponent in cm/s. Default value is SpeedConfidence::UNAVAILABLE.