Skip to content

Speedometer (for Vehicles)

Grinch_ edited this page Jan 22, 2024 · 3 revisions



Speedometer Integration for Dashboard

Overview

The Speedometer feature displays the vehicle's speed on the dashboard with an analog display. The needle of the speedometer rotates on the Y-axis, providing a visual representation of the speed. Follow the instructions below to adapt your model for the Speedometer functionality.

Needle Naming and Positioning

  1. Needle Naming:

    • Name the needle of your Speedometer as x_sm.
  2. Needle Positioning:

    • Position the needle to point to 0 on the speed scale.

Speedometer Configuration

  1. Pass Parameters:

    • Configure the Speedometer by passing the maximum speed and the rotation required for the needle to point to the maximum speed.
    • Use the following format for the needle name: x_sm_m<max_speed>r<max_speed_rot>.
      • Replace <max_speed> with the maximum speed value.
      • Replace <max_speed_rot> with the rotation value required for the needle to point to the maximum speed.

    Example: x_sm_m120r180

    By default, 100 is used for both <max_speed> and <max_speed_rot>.

Unit Conversion

  • mph to kph:
    • To change the unit to kilometers per hour (kph), add _kph to the needle name.

Example

Suppose you want to configure the Speedometer with a maximum speed of 160 mph and a rotation of 220 degrees to point to the maximum speed:

  • Name the needle x_sm.
  • Position the needle to point to 0 on the speed scale.
  • Pass parameters: x_sm_m160r220.

To use kilometers per hour:

  • Name the needle x_sm_kph.
  • Position the needle to point to 0 on the speed scale.
  • Pass parameters: x_sm_kph_m260r220.

By following these steps, you integrate the Speedometer feature into your model, providing a simulated representation of the vehicle's speed on the dashboard.