Hi - I'm out playing as usual

About Dashboard and the
Compass instrument.
I've made me an electronic compass (the "Robot" stuff is nice!) for the moment sending HDM and HDG. (See pics.)
The OCPN "HDG Instrument" is fine and nicely updated but the Compass instrument is not. What I can see it's told to use HDT data input but no value is shown. I've tried to make HDT out of HDM using the now commented row in dashboard_pi.cpp (around row 600):
Code:
else if( m_NMEA0183.LastSentenceIDReceived == _T("HDG") ) {
if( m_NMEA0183.Parse() ) {
if( mPriVar >= 2 ) {
mPriVar = 2;
if( m_NMEA0183.Hdg.MagneticVariationDirection == East ) mVar =
m_NMEA0183.Hdg.MagneticVariationDegrees;
else if( m_NMEA0183.Hdg.MagneticVariationDirection == West ) mVar =
-m_NMEA0183.Hdg.MagneticVariationDegrees;
SendSentenceToAllInstruments( OCPN_DBP_STC_HMV, mVar, _T("\u00B0") );
}
if( mPriHeadingM >= 1 ) {
mPriHeadingM = 1;
mHdm = m_NMEA0183.Hdg.MagneticSensorHeadingDegrees;
SendSentenceToAllInstruments( OCPN_DBP_STC_HDM, mHdm, _T("\u00B0") );
//SendSentenceToAllInstruments(OCPN_DBP_STC_HDT, mHdm + mVar, _T("\u00B0")); //<<<<<<<<<<This/Hakan
}
if( !wxIsNaN(m_NMEA0183.Hdg.MagneticSensorHeadingDegrees) )
mHDx_Watchdog = gps_watchdog_timeout_ticks;
But no success with that.
The
funny thing is that looking in Debugger-NMEA Event the Hdt value is there. Obviously created of Hdm + mVar (See pic.)
Now I'm
lost in the Dashboard source and my
head is tired. Please if anyone has the patience to advice a hack to get a live Compass instrument. The HDM and the variation from WMM should in my opinion be enough!? And of course it should be nice to know if the shown value is "M" or "T". But basically the "M-(HDM)" itself would be fine for the compass instrument. That's what both my "normal" compass and the
Simrad instrument shows?? (I've seen the "TODO" about a making this optional.)
Any viewpoints on this ?
Thanks Håkan