Steps to run: With a USB-C to USB-A cable, connect the USB-C end to the Pixhawk (there is a USB-C port on the side of the Pixhawk) and the USB-A end to one of the USB ports on the Raspberry Pi. Power the Pixhawk with a battery. Power the Raspberry Pi using a USB-C charger. The USB-C end will connect to the USB-C port on the Raspberry Pi. Open up Mission Planner and wait a minute to see if it the drone automatically connects. If Mission Planner doesn’t connect, click the connect button on the top right hand corner. Run the pathing repository with the command python -m path_2023 . Scan the QR code. Ensure the script has successfully completed (should print “Done”) at the end. Go to Mission Planner, press the Plan tab in the top left corner, and press the Read button on the right hand side. Mission Planner should output the waypoints.
The code has been tested. |