Wind sensor reading: Implements wind sensor reading to the SailBot app, capturing wind data from the encoder. This data is now sent as an extra two-byte packet, aimed for display within the PyDotBot interface (PyDotBot GitHub).
Compatibility and Testing
Rudder and Sail Trim Data: Alongside wind data, two additional bytes representing rudder angle and sail trim are sent for compatibility with PyDotBot code updates linked to the SailBot simulator. These changes are pending testing as of the latest commit (eebda96887a40c91e26c924177b96c2a1a1bfb45). The rudder angle currently sends as zero. This needs to be changed.
Action Required: Modifications are necessary to align these new variables (rudder angle and sail trim) with the simulator GUI, including adjusting value formats to degrees within a specific coordinate system.
Bug Fix: GPS Data Transmission Post-Reset
Issue Resolved: Fixed a bug where the SailBot failed to send data after a reset, despite successful GPS connection to the satellites. The solution simply involves adding delays to the GPS initialization function, which ensures that the GPS module settles in.
279 was merged. Can you rebase this PR on top of it to fix the conflicts? I believe only sailbot.c and projects/projects-sailbot.emProject files should appear in the "files changed" tab of this PR.
SailBot App changes
Wind Sensor Integration
Compatibility and Testing
eebda96887a40c91e26c924177b96c2a1a1bfb45
). The rudder angle currently sends as zero. This needs to be changed.Bug Fix: GPS Data Transmission Post-Reset