~/git/folder and is set up as follows:
~/ros2ws/NXP-Autopilot/src/examplesdirectory. This directory contains user-written and example modules for PX4. By placing your self-driving source code in this directory, you can easily add it to the PX4 SITL (Software In The Loop) build target. Thankfully, we have already included a simple example module that drives the simulated cup car around an oval track. The module is located at
~/ros2ws/NXP-Autopilot/src/examples/nxpcup/. An overview of the directory is located below:
nxpcupdirectory, you will see a few files that may look familiar if you have previously used a brushless NXP Cup car kit. The files here are provided for contestants to get a quick start with simulation. A description of each file is in the table below:
nxpcup_race.cpp, there is a function that receives vector information from the a simulated Pixy camera and returns speed and steer values. The vector information is received through a uORB topic and is nearly identical to the vector information sent by the Pixy over I2C.