-
Notifications
You must be signed in to change notification settings - Fork 32
Editing the crontab
Brad Iglesia edited this page Oct 28, 2018
·
2 revisions
Because we want want our Raspberry Pi to boot up and run our code as soon as the VTOL (or Quad-copter) is turned on, we will have to edit the crontab.
For the sake of this example, we will pretend like our code is in the file pyTest.py and saved at /home/pi/Desktop/pyprog.
In the terminal, enter the command "crontab -e" adding "sudo" before the command if it asks you if you are root.
At the bottom of this file, we would add
@reboot sudo python /home/pi/Desktop/pyprog/pyTest.py
Now, when the Raspberry Pi is turned on, the script(s) specified should be run automatically.
For a more detailed explanation, follow this link to see how
- Project Overview
- Dependency List
- GCS JSON Message Formatting
- Dronekit mission_basic.py
- Continuous Integration with Travis
- Engineering Requirements
- Test Hierarchy
- Style Guide
- Glossary