This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This example shows how to use DroneKit-Python to get and set vehicle state, parameter and channel-override information. | |
# It also demonstrates how to observe vehicle attribute (state) changes. | |
# | |
# Usage: | |
# * mavproxy.py | |
# * module load api | |
# * api start range.py | |
# | |
from droneapi.lib import VehicleMode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
multiprocesscallback.py, by Peter Sobot (psobot.com), May 13, 2012 | |
Handles callback functions in classes that have member functions that | |
are executed in a different process. A crazy experiment in Python | |
magic that breaks a lot of rules. | |
Do not use in production, for any reason. (Although I do.) | |
If your class takes in a callback, like so: |