Python wrapper for the boatd API, used to write behavior scripts.
Project description
Python module for writing boatd behavior scripts.
Installing
$ pip install python-boatdclient
class Boat
A boat controlled by boatd
Attributes
heading: Return the current heading of the boat in degrees
position: Return a tuple in the form (latitude, longitude)
version: Return the version of boatd
wind: Return a tuple in the form (direction, speed). This contains the direction of the wind in degrees and the speed the wind is blowing in knots.
methods
def __init__(self, host='localhost', port=2222)
Create a boat instance, connecting to boatd at host on port port
def __rudder__(self, angle)
Set the angle of the rudder to be angle degrees
def __sail__(self, angle)
Set the angle of the sail to angle degrees
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file python-boatdclient-0.3.1.tar.gz
.
File metadata
- Download URL: python-boatdclient-0.3.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 597508113d49c6294fb3c0dad70a610c4782633a449887e7c98bc0aed692d43a |
|
MD5 | 634d6624495fe5f89d269e4d506fe994 |
|
BLAKE2b-256 | 540355f1058ff8504a9cbf363a4586b86f6d6258e560fb6a74c3c55724f66b9d |