Code for interacting with the ardupilot localization system
This assumes that python3 is installed on the system.
- Clone this repo and
cd
into it. python3 -m venv venv
- If bash shell,
source venv/bin/activate
. If windows cmd,venv\Scripts\activate.bat
. pip install -r requirements.txt
source venv/bin/activate
python ArduPilotDriver.py
On unix shells (e.g. bash) you can simply do:
./ArduPilotDriver.py
Make sure tmux
is installed, if not then sudo apt install tmux
. Then:
./launch.sh
{
"type": "gps",
"lat": number,
"lon": number
}
{
"type": "orientation",
"roll": number,
"pitch": number,
"yaw": number
}
{
"type": "heading",
"heading": number
}