Hello,
I think this is a good idea making this. But I found some thinks, They don't work.
Why is there made a tumbling of the Compass, when the Values are never used ? It is overwriten immediately by "refresh_data()"
"magScale" is never set to "Mag_x_scale" ...
And in this case ... ? Why do you save "Mag_x_scale" in the EEPROM
Hello,
I think this is a good idea making this. But I found some thinks, They don't work.
Possible issue in SetN2kPGN127251 ? Rate of turn ttlappalainen/NMEA2000#250 (comment)
change to : SetN2kRateOfTurn(N2kMsg, SID, -(gz * 0.017448352875489));
Why is there made a tumbling of the Compass, when the Values are never used ? It is overwriten immediately by "refresh_data()"
"magScale" is never set to "Mag_x_scale" ...
And in this case ... ? Why do you save "Mag_x_scale" in the EEPROM
See exactly the code on this Side : http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles