Function etsi_its_cpm_ts_msgs::access::setCartesianCoordinateWithConfidence

Function Documentation

inline void etsi_its_cpm_ts_msgs::access::setCartesianCoordinateWithConfidence(CartesianCoordinateWithConfidence &coordinate, const int32_t value, const uint16_t confidence = CoordinateConfidence::UNAVAILABLE)

Sets the value and confidence of a CartesianCoordinateWithConfidence object.

This function sets the value and confidence of a CartesianCoordinateWithConfidence object. The value is limited to the range defined by CartesianCoordinateLarge::NEGATIVE_OUT_OF_RANGE and CartesianCoordinateLarge::POSITIVE_OUT_OF_RANGE. The confidence is limited to the range defined by CoordinateConfidence::MIN and CoordinateConfidence::MAX. If the provided confidence is out of range, the confidence value is set to CoordinateConfidence::OUT_OF_RANGE.

Parameters:
  • coordinate – The CartesianCoordinateWithConfidence object to be modified.

  • value – The value to be set in centimeters.

  • confidence – The confidence to be set in centimeters (default: CoordinateConfidence::UNAVAILABLE).