Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 957 Bytes

README.md

File metadata and controls

62 lines (48 loc) · 957 Bytes

ardupilot-driver

Code for interacting with the ardupilot localization system

Setup instructions

This assumes that python3 is installed on the system.

  1. Clone this repo and cd into it.
  2. python3 -m venv venv
  3. If bash shell, source venv/bin/activate. If windows cmd, venv\Scripts\activate.bat.
  4. pip install -r requirements.txt

Running instructions

Run in current terminal

source venv/bin/activate
python ArduPilotDriver.py

On unix shells (e.g. bash) you can simply do:

./ArduPilotDriver.py

Run in new terminal

Make sure tmux is installed, if not then sudo apt install tmux. Then:

./launch.sh

Ardupilot Protocol

GPS

{
    "type": "gps",
    "lat": number,
    "lon": number
}

Orientation

{
    "type": "orientation",
    "roll": number,
    "pitch": number,
    "yaw": number
}

Heading

{
    "type": "heading",
    "heading": number
}