/solo

Some scripts for the 3DR Solo

Primary LanguagePython

Testing scripts on the simulator

References

Installing

  • git clone http://github.com/dronekit/dronekit-python.git
  • pip install --upgrade pip
  • sudo pip install dronekit
  • sudo pip install dronekit-sitl -UI
  • brew tap homebrew/science
  • brew install wxmac wxpython opencv
  • sudo pip uninstall python-dateutil
  • sudo pip install numpy pyparsing
  • sudo pip install MAVProxy

Start the simulator, listening on port 5760

Start MAVProxy with a map and console, connect to the simulator, and allow connections to the simulator on port 14550

  • mavproxy.py --master tcp:127.0.0.1:5760 --out 127.0.0.1:14550 --console --map

Run the DroneKit script

  • cd ~/dronekit-python/examples/simple_goto
  • pip install geopy -UI
  • python simple_goto.py --connect 127.0.0.1:14550

Building a new version of SITL

Then to run SITL...

  • dronekit-sitl /Users/daryl/dronekit-sitl/stage/build/staging/ArduCopter.elf