Skip to content

Commit

Permalink
TWA, AWA corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
Rasbats committed Jan 16, 2019
1 parent 2e8d16a commit 0821679
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/ShipDrivergui_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,22 @@ void Dlg::Notify()
double wspd, wdir;
bool m_bGrib = GetGribSpdDir(dt, initLat, initLon, wspd, wdir);
if (m_bGrib && m_bUsingWind){
MWD = createMWDSentence(wdir, wspd);
PushNMEABuffer(MWD + _T("\n"));
MWVA = createMWVASentence(initSpd, myDir, wdir, wspd);
MWVT = createMWVTSentence(initSpd, myDir, wdir, wspd);

PushNMEABuffer(MWVA + _T("\n"));
PushNMEABuffer(MWVT + _T("\n"));

}

GLL = createGLLSentence(mdt, initLat, initLon, initSpd, myDir);
VTG = createVTGSentence(initSpd, myDir);
VHW = createVHWSentence(initSpd, myDir);

PushNMEABuffer(GLL + _T("\n"));
PushNMEABuffer(VTG + _T("\n"));
PushNMEABuffer(VHW + _T("\n"));

if (m_bUseAis) PushNMEABuffer(myNMEAais + _T("\n"));

initLat = stepLat;
Expand Down

0 comments on commit 0821679

Please sign in to comment.