sailboat_sensors.anemometer.sail_anemometer module
- class sailboat_sensors.anemometer.sail_anemometer.SailAnemometer(port, baudrate=9600)
Bases:
objectThis class interfaces directly with the serial port for the sensor communications. It is responsible for reading the wind data from the sensor.
- close()
Close the serial connection.
- read_wind()
Read the wind data from the serial port. :return: Wind direction as an integer.