Cluster scene - ADAS
The HMI includes key press events for events for Advanced Driver Assistance Systems (ADAS) actions.
The actions you can edit include:
- ADAS_Increase
- ADAS_Decrease
- ADAS_Set
- ADAS_Cancel
ADAS Visualization
Each input is tied to the VehicleController interaction script (on the Interaction GameObject.)
The VehicleController script is tied to the Vehicle Service, which holds a reference to the Vehicle Prefab in the project. Vehicle Prefab contains a script titled AdasVehicleSpeedController.
The script controls the vehicle speed in response to user input. To visualize the ADAS, you can use a visualization script that is located under the Visualiztion in the hierarchy.
Data file
The ADAS relies a centralized Datafile that is named AdasSpeedControl. The data file determines the maximum speed that the ADAS can run to (in km/h) and the increment that it uses to speed up or slow down on each press.
Start/Stop script
The vehicle is designed to respond to start/stop input.
When the a user presses the input key, the signal goes to the vehicle controller. The vehicle controller then instructs the vehicle to stop by sending the command in the EngineStartStopResponse script. This script turns off the engine and changes the gear to Park.
If the vehicle is turned off, the system shows it on the cluster using the Start Stop Engine UI script. The script shows a cover in the cluster until the user presses the input again.