Auto Headlight Example#
Attention
Purpose: Demonstration with open source software OpenXilEnv
and Carla
Note
<output-folder>/examples/bin
:Hint
The function should automatically switch on the light when the vehicle drives into a tunnel:
Two input signals represents the the GPS position of the vehicle.
One output signal switches the heeadlight on or off.
The function (complex service) has internally a map containing the position of tunnels so it can switch on automatically the light.

The 3 Signals of the headlight example.
Screenshots of running the Application (Complex Service) in a simulation:

Simulation Software OpenXilEnv
, loading Carla FMU
and Open Vehicle API FMU
.

Before entering the tunnel, the headlights are off.

After entering the tunnel, the headlights are turned on.

Inside the tunnel, the headlights are on.

Shortly before exiting the tunnel, the headlights are still on.

After leaving the tunnel, the headlights are turned off.