Skip to content

mwshafer/MavlinkTagController

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions for Linux(SITL)/rPi vehicle setup

cd ~
mkdir repos
cd ~/repos

MavlinkTagController

This is the controller on the vehicle which talks back/forth with QGC.

cd ~/repos
git clone --recursive [email protected]:DonLakeFlyer/MavlinkTagController.git
make

Airspy

sudo apt install airspy

csdr_uavrt

This is a custom version of csdr which outputs to udp

cd ~/repos
git clone [email protected]:DonLakeFlyer/csdr-uavrt.git
make
sudo make install

uavrt_detection

cd ~/repos
git clone --recursive [email protected]:dynamic-and-active-systems-lab/uavrt_detection.git
make

airspy_channelize

cd ~/repos
git clone --recursive [email protected]:dynamic-and-active-systems-lab/airspy_channelize.git
make

MAVSdk

On the rPi you'll need to buld your own MAVSdk since there isn't a released version for it. On Linux theoretically you don't need to do that, but might as well build it there as well so you are doing the same thing. Follow the instructions here: https://mavsdk.mavlink.io/main/en/cpp/guide/build.html. Checkout the latest release tag.

Tag Tracker QGC

You can get an insaller artifact from here: https://github.com/DonLakeFlyer/UAV-RT-TagTracker/actions

Testing with PX4 SITL

  • Follow the instructions here to build a SITL version: https://docs.px4.io/main/en/dev_setup/dev_env.html.
  • Start PX4 SITL: PX4_SIM_SPEED_FACTOR=2 HEADLESS=1 make -j 12 px4_sitl_default gazebo-classic_iris
  • Start MavlinkTagController:
    • cd ~/repos/MavlinkTagController
    • ./build/MavlinkTagControler
  • Start QGC Tag Tracker version
    • Click Tags to send tags
    • Click Start to start detectors
    • Click Stop to stop detectors
    • Update the TagInfo.txt to match you tag
    • Application Settings/Tags to set K, False Alarm and so forth

Setup rPi to start MavlinkTagController at boot

  • run `crontab -e'
  • Add this to the end of the file: @reboot if [ -f /home/pi/MavlinkTagController.log ]; then cp -f /home/pi/MavlinkTagController.log /home/pi/MavlinkTagController.prev.log; rm -f /home/pi/MavlinkTagController.log; fi; /home/pi/repos/MavlinkTagController/build/MavlinkTagController serial:///dev/ttyS0:57600 > /home/pi/MavlinkTagController.log 2>&1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 71.2%
  • Python 21.5%
  • Dockerfile 3.0%
  • Shell 2.0%
  • CMake 1.5%
  • C 0.7%
  • Makefile 0.1%