sailboat_sensors.airmar.sail_airmar module

class sailboat_sensors.airmar.sail_airmar.SailAirMar(port)

Bases: object

SailAirMar implements a class used to connect the component to its proper communication protocol. This class also implements functions to return raw data from the AirMar.

parseAirMarData(line)

Parses a line of AirMar data and updates the readings dictionary. Some readings are omitted.

readAirMarHeading()

Returns the heading in degrees. 0 degrees is East, 90 degrees is North, 180 degrees is West, 270 degrees is South.

readAirMarLatitude()

Returns the latitude in degrees

readAirMarLongitude()

Retruns the longitude in degrees

readAirMarROT()

Returns the rate of turn in degrees per second.

serialDataReader()

Reads data from the serial port and stores it in a dictionary.