sailboat_sensors.anemometer.sail_anemometer_fake module
- class sailboat_sensors.anemometer.sail_anemometer_fake.FakeSailAnemometer
Bases:
objectThis class simulates the behavior of a real anemometer sensor. It generates random wind angle values for testing purposes.
- close()
Simulate closing the connection to the anemometer (no-op for fake sensor).
- read_wind()
Simulate reading the wind angle from the sensor. :return: Wind direction as an integer (0 to 360 degrees).