Run sample applications

The reference image includes multiple sample applications that allow you to experiment and see how various features run.

By default, the reference image is configured to start the ADAS example application automatically. If you want to interact with the application or run other sample applications that are included with the image, connect to the target as described in Connect to the reference image, then use slay to stop the ADAS example application as follows:
# slay adas_example
These are the sample applications that demonstrate what you can build with the Sensor Framework:
Note:
  • The applications are for demonstrative/reference purposes and are meant as a starting point for you to learn how to build applications. They aren't intended for production and the code is structured in a manner to make it easier to learn how to use the API calls.
  • You can run multiple applications as long as they don't try to use the same sensor/camera; however, you can only see the most recent application on the display. If you ran an application in the background, to stop it, connect to the target and run the slay command as shown above.
  1. ADAS example: This application is configured to run immediately after the board boots up. It reads sensor data and camera data to create visualizations using the ADAS library. For more information about running this application, see ADAS example in this chapter.
  2. Camera example: This application lets you configure camera settings and demonstrates how to use the Camera library with the cameras connected to your system. If a camera is configured correctly in the sensor configuration file, this application will indicate that the camera is available. For more information, see Camera example.”
  3. Camera MUX: This application can show a 2x2 grid from four cameras. For more information, see Camera MUX.”
  4. Sensor example: This application reads data by querying a sensor and then displays that data. You can also use it to record sensor information. For more information, see Sensor example.”