Function etsi_its_cpm_ts_msgs::access::setObjectDimension
Defined in File cpm_ts_setters.h
Function Documentation
-
inline void etsi_its_cpm_ts_msgs::access::setObjectDimension(ObjectDimension &dimension, const uint16_t value, const uint8_t confidence = ObjectDimensionConfidence::UNAVAILABLE)
Sets the object dimension with the given value and confidence.
This function sets the value and confidence of the object dimension based on the provided parameters. The value is limited to the range defined by ObjectDimensionValue::MIN and ObjectDimensionValue::MAX. If the provided value is outside this range, the dimension value is set to ObjectDimensionValue::OUT_OF_RANGE.
The confidence is limited to the range defined by ObjectDimensionConfidence::MIN and ObjectDimensionConfidence::MAX. If the provided confidence is outside this range, the confidence value is set to ObjectDimensionConfidence::OUT_OF_RANGE.
- Parameters:
dimension – The object dimension to be set.
value – The value of the object dimension in decimeters.
confidence – The confidence of the object dimension in decimeters (optional, default is ObjectDimensionConfidence::UNAVAILABLE).