rgarside
Well-Known Member
Done some more work on the UI. The NMEA data is perfectly happy streaming out so thats a done deal and I wanted to have a go at the compass/heading/speed concept.
Realised that I need a combined magnemoter/accelerometer (more trial and error) but pressed on anyway to see if I could proof of concept it. Needs tidying and a fair bit more code but its promising.
I have mounted a temperature sensor on the breadboard ready to code into the environmental window, and the GPS data will go into the relevant place shortly.
![]()
All looks very good.
Are you looking at the MPU 9050 for the heading unit? To do tilt correction on the compass while under way I think you may need a unit with magnetometer, accelerometer & gyro [otherwise the lateral accelerations will be combined with tilt]. I think there are some libraries out there that can do some of that.
My interpretation of your display is that your heading is 260 [True, Magnetic or Compass?], and that the arrow indicates that I should be steering to Port to a heading of less than 260. Not sure about the meaning of CTS [course to steer] being 285 - or is that COG [course over ground]?
