Usage
Command-line¶
Command-line usage is available by running djicot -h.
usage: djicot [-h] [-c CONFIG_FILE] [-p PREF_PACKAGE]
options:
-h, --help show this help message and exit
-c CONFIG_FILE, --CONFIG_FILE CONFIG_FILE
Optional configuration file. Default: config.ini
-p PREF_PACKAGE, --PREF_PACKAGE PREF_PACKAGE
Optional connection preferences package zip file (aka data package).
Run as a service / Run forever¶
- Add the text contents below a file named
/etc/systemd/system/djicot.service
You can usenanoorvieditors:sudo nano /etc/systemd/system/djicot.service - Reload systemctl:
sudo systemctl daemon-reload - Enable DJICOT:
sudo systemctl enable djicot - Start DJICOT:
sudo systemctl start djicot
djicot.service Content¶
[Unit]
Description=DJICOT - Display DJI drones in TAK
Documentation=https://djicot.rtfd.io
Wants=network.target
After=network.target
[Service]
RuntimeDirectoryMode=0755
ExecStart=/usr/local/bin/djicot -c /etc/djicot.ini
SyslogIdentifier=djicot
Type=simple
Restart=always
RestartSec=30
RestartPreventExitStatus=64
Nice=-5
[Install]
WantedBy=default.target
Pay special attention to the
ExecStartline above. You'll need to provide the full local filesystem path to both your djicot executable & djicot configuration files.
Local evaluation with AntSDR¶
- Copy
example-config.iniand setFEED_URLto your AntSDR IP: - Binary feed:
tcp://192.168.1.10:41030 - Text CSV feed:
tcp://192.168.1.10:52002 - Set
SENSOR_LAT/SENSOR_LONfor range-only detections. - Run offline tests:
make test_cov - Run hardware smoke tests (requires live AntSDR):
- Run live against TAK:
djicot -c example-config.ini
Capture text or binary samples from AntSDR and add trimmed lines to tests/data/ for regression fixtures.