uaarg / shepard

A collection of scripts running on the drone or for determining drone flight plans. These preform both imaging and autopilot tasks.
0 stars 2 forks source link

UAARG Onboard Script

This repository holds the scripts for:

How do I get set up?

This script is designed to run on a system with a USB or UART connection to a PixHawk Board, and a camera system. Some functions may not work if the above requirements are not met, but our systems should be designed in a robust way to allow most functions to still work.

For X86 or arm64 Systems (ie Desktop + Laptop Computers + RPi)

For armv7l Systems (ie ODroid XU4)

How to setup for auto-running on a rpi

To setup a systemd service so that shepard will automatically start and restart.

uaarg@raspberrypi:~/shepard $ sudo ln shepard.service /etc/systemd/system
uaarg@raspberrypi:~/shepard $ sudo systemctl enable shepard.service 
Created symlink /etc/systemd/system/multi-user.target.wants/shepard.service → /etc/systemd/system/shepard.service.
uaarg@raspberrypi:~/shepard $ sudo systemctl start shepard.service

Then you can confirm that everything is working by running:

uaarg@raspberrypi:~/shepard $ sudo systemctl status shepard.service 
● shepard.service - Shepard
     Loaded: loaded (/etc/systemd/system/shepard.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2023-04-03 18:40:55 MDT; 8min ago
   Main PID: 2210 (python)
      Tasks: 9 (limit: 3933)
        CPU: 15min 59.449s
     CGroup: /system.slice/shepard.service
             ├─2210 python /home/uaarg/shepard/main.py
             ├─2220 python /home/uaarg/shepard/main.py
             ├─2221 python /home/uaarg/shepard/main.py
             └─2222 python /home/uaarg/shepard/main.py

How to Solve Permission Errors on Linux

Contribution guidelines

We have several tools setup, please use them. These are:

Also, keep in mind that the tests and linter is run on every commit and/or PR in our CI.

Who do I talk to?