PX4-Autopilot/src/examples/nxpcup/
. The only file you should have to edit is nxpcup_race.cpp
. This file contains the raceTrack() function, which is where your self-driving algorithm code should live. You can use the pixy_vector_s structure to write your algorithms. The structure is as follows:pixy_uorb
, and the other is called nxpcup_work
. pixy_uorb
uses the standard Pixy driver to publish Pixy vector data to uORB, the publish/subscribe protocol in PX4. This data is subscribed to by nxpcup_work
, the application that tells the Buggy3 how to drive around the track using the Pixy data. To run this code, you can open QGroundControl and navigate to the Q logo -> Analyze Tools -> Mavlink Console and run: