Auto Headlight Example#

Attention

Purpose: Demonstration with open source software OpenXilEnv and Carla

Note

Example can be found in <output-folder>/examples/bin:
auto_headlight_app

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.

../../../_images/auto_headlight_example.png

The 3 Signals of the headlight example.

Screenshots of running the Application (Complex Service) in a simulation:

../../../_images/autohedlight_01.png

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

../../../_images/autohedlight_02.png

Before entering the tunnel, the headlights are off.

../../../_images/autohedlight_03.png

After entering the tunnel, the headlights are turned on.

../../../_images/autohedlight_04.png

Inside the tunnel, the headlights are on.

../../../_images/autohedlight_05.png

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

../../../_images/autohedlight_06.png

After leaving the tunnel, the headlights are turned off.