# C-Code

**URL:** https://forums.ipg-automotive.com/c/coding-integration/c-code/8.md

[Latest](https://forums.ipg-automotive.com/latest.md) · [Categories](https://forums.ipg-automotive.com/categories.md) · [Tags](https://forums.ipg-automotive.com/tags.md)

---

## [About the C-Code category](https://forums.ipg-automotive.com/t/about-the-c-code-category/14)

<div class="topic-metadata">

**Author:** [@david.barry](https://forums.ipg-automotive.com/u/david.barry)\
**Replies:** 0

</div>

A place to discuss c-code

---

## [Need help with getting tyre angles](https://forums.ipg-automotive.com/t/need-help-with-getting-tyre-angles/1944)

<div class="topic-metadata">

**Author:** [@hjk3889](https://forums.ipg-automotive.com/u/hjk3889)\
**Replies:** 2\
**Last updated:** [11 September 2025 02:27 UTC](https://forums.ipg-automotive.com/t/need-help-with-getting-tyre-angles/1944 "2025-09-11T02:27:07Z")

</div>

Is there any way I can get tyre angles in User.c? I know that I can access the steering angle with Vehicle.Steering.Ang variable. But seems like there is no variable for tyre angles.

---

## [Reading object tag via RoadGetObjectTag() very expensive](https://forums.ipg-automotive.com/t/reading-object-tag-via-roadgetobjecttag-very-expensive/1861)

<div class="topic-metadata">

**Author:** [@vairl](https://forums.ipg-automotive.com/u/vairl)\
**Replies:** 1\
**Last updated:** [12 June 2025 16:25 UTC](https://forums.ipg-automotive.com/t/reading-object-tag-via-roadgetobjecttag-very-expensive/1861 "2025-06-12T16:25:11Z")

</div>

Hi everyone, I needed a place to store some external IDs and relate them to CarMaker objects. The solution I found was to manually store them to the object tag in scenario editor. In the C code I read it out using RoadG…

---

## [Set car position during simulation](https://forums.ipg-automotive.com/t/set-car-position-during-simulation/1678)

<div class="topic-metadata">

**Author:** [@IJordano478](https://forums.ipg-automotive.com/u/IJordano478)\
**Replies:** 0\
**Last updated:** [28 February 2025 11:39 UTC](https://forums.ipg-automotive.com/t/set-car-position-during-simulation/1678 "2025-02-28T11:39:47Z")

</div>

Is it possible to set a car position mid simulation using C code? An example would be a request to reset the car to the centre of the track if it drives off. Isaac

---

## [Adding sensors to ADS-DV (car model)](https://forums.ipg-automotive.com/t/adding-sensors-to-ads-dv-car-model/630)

<div class="topic-metadata">

**Author:** [@deepboliya30](https://forums.ipg-automotive.com/u/deepboliya30)\
**Replies:** 1\
**Last updated:** [7 September 2023 10:58 UTC](https://forums.ipg-automotive.com/t/adding-sensors-to-ads-dv-car-model/630 "2023-09-07T10:58:20Z")

</div>

I want to add a sensor simulating an IMU to the ADS-DV model available, currently to get the linear and angular acceleration of the car, as workaround I had to add a new ROS publisher in the code of CM (publishing the C…
