Skip to content

BCLab-UNM/dragonfly-controller

 
 

Repository files navigation

Dragonfly Scripts

Steps to setup Dragonfly:

  1. Setup network interfaces file: /etc/network/interfaces :

auto wlan0
iface wlan0 inet static
    address 10.42.0.3
    netmask 255.255.255.0
    gateway 10.42.0.1
    wireless-channel 1
    wireless-essid dragonflyadhoc
    wireless-mode ad-hoc
    wireless-key s:drago
  1. Setup DHCP server: /etc/rc.local:

sudo dhclient wlan0
  1. Setup hardware static names: /etc/udev/rules.d/10-dragonfly.rules:

ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", SYMLINK+="ttysba5"
ACTION=="add", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="ttypixhawk"
  1. Setup crontab, this includes log rotation and starting the co2 logging at startup:

*/15 * * * * /usr/sbin/logrotate -s /tmp/logrotate.tmp /home/ubuntu/dev/dragonfly/logrotate.conf
@reboot cd /home/ubuntu/dev/dragonfly/ ; ./startup.sh&
  1. Install and configure ros including rospy and mavros (found in setup.sh script)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.9%
  • Shell 1.5%
  • Other 1.6%