Skip to content

Commit

Permalink
set the SpeedValue correctly in naive README-example (it should be gi…
Browse files Browse the repository at this point in the history
…ven in cm per second)
  • Loading branch information
gkueppers committed Jan 3, 2025
1 parent 09eb23f commit cd67012
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ The `etsi_its_msgs_utils` package contains header-only libraries providing helpf

// ...

double speed;
double speed = 10.0; // vehicle speed in m/s
etsi_its_cam_msgs::msg::CAM cam;
etsi_its_cam_msgs::access::setSpeed(cam, 10.0);
etsi_its_cam_msgs::access::setSpeed(cam, speed);
// instead of
cam.cam.cam_parameters.high_frequency_container.basic_vehicle_container_high_frequency.speed.speed_value.value = 10.0;
cam.cam.cam_parameters.high_frequency_container.basic_vehicle_container_high_frequency.speed.speed_value.value = (uint16_t)(speed * 1e2);

// ...
```
Expand Down

0 comments on commit cd67012

Please sign in to comment.