v1.11.0-beta2 (2020-05-10)
- replace ioctl with uorb message (#14087)
| " ~/.vimrc -- @mrpollo's Vim configuration | |
| " show line numbers | |
| set number | |
| set relativenumber | |
| " show ruler (line and column numbers in the status line) | |
| set ruler | |
| " disable line wrapping per buffer (you can still toggle with :set wrap) |
| PYTHON_VERSION=$(python3 --version 2>&1 | awk '{print $2}') | |
| REQUIRED_VERSION="3.11" | |
| if [[ "$(printf '%s\n' "$REQUIRED_VERSION" "$PYTHON_VERSION" | sort -V | head -n1)" == "$REQUIRED_VERSION" ]]; then | |
| python3 -m pip install --break-system-packages -r ${DIR}/requirements.txt | |
| else | |
| if [ -n "$VIRTUAL_ENV" ]; then | |
| # virtual environments don't allow --user option | |
| python -m pip install -r ${DIR}/requirements.txt | |
| else | |
| python3 -m pip install --user -r ${DIR}/requirements.txt |
| from __future__ import print_function | |
| from flask import Flask, request | |
| from dronekit import connect, LocationGlobal, VehicleMode | |
| import sys, time | |
| class Drone(object): | |
| def __init__(self): | |
| self.vehicle = connect('tcp:127.0.0.1:5760', wait_ready=True) | |
| self.vehicle.add_attribute_listener('armed', self._armed_callback) |
Initial guide taken from the PX4 site http://dev.px4.io/simulation-gazebo.html
git clone https://github.com/PX4/Firmware.git
| #include <stdio.h> | |
| #include <string> | |
| #include <stdint.h> | |
| #include <unistd.h> // for abort | |
| #include <string.h> // for strerror | |
| #include <errno.h> | |
| #include <stdlib.h> | |
| #include <memory> | |
| #include <string> |
| <?xml version="1.0"?> | |
| <root> | |
| <deviceproductdef> | |
| <productname> | |
| QUICKFIRE_RAPID_I | |
| </productname> | |
| <productid> | |
| 0x0020 | |
| </productid> | |
| </deviceproductdef> |
| """ | |
| This example code demonstrates how to use the DroneKit-Cloud API with Python. | |
| """ | |
| #for options parsing | |
| from optparse import OptionParser | |
| import pprint | |
| import time | |
| import requests |
| export SRC_DIR='/home/vagrant/src' | |
| export PATH=$PATH:$SRC_DIR/jsbsim/src | |
| export PATH=$PATH:$SRC_DIR/ardupilot/Tools/autotest | |
| export PATH=/usr/lib/ccache:$PATH |