Sailing analytics
A Swift iOS app that analyzes sailing performance from NMEA 0183 data.
- Result
- Perspective Racing won its class at the Ontario 300
- When
- Summer 2025
- Built with
- Swift, NMEA 0183
- Links
- Code
What I did
I designed and shipped the app during my co-op at Perspective Racing. It reads NMEA 0183 sentences from the boat's instruments over TCP and compares the boat's performance with target polar data.
The hard part
The VMG calculations used the apparent wind angle instead of the true wind angle, so the sail recommendations were wrong. I traced it through the raw NMEA sentences and fixed it on the boat, between races.
Before the Ontario 300 I also fixed the depth reading. The sounder sends DPT sentences, but the parser read them with the field layout of a different sentence, DBT, so depth came from the wrong fields. I also made the wind display show both true and relative wind instead of dropping relative readings.
- NMEA sentences
- Parser
- True wind angle
- VMG