private void Process_LOC_DATA(object[] parameters) { if (timer.IsRunning) { timer.Stop(); timCnt = 0; } LocalDataIDs localDataID = (LocalDataIDs)((int)(parameters[0])); double value = (double)parameters[1]; if (LocalDataReceived != null) { LocalDataReceived(this, new LocalDataEventArgs(localDataID, value)); } }
public string QueryLocDataSet(LocalDataIDs dataID, double value) { return(NMEAParser.BuildProprietarySentence(ManufacturerCodes.TNT, "P", new object[] { (int)dataID, value })); }
public string QueryLocDataGet(LocalDataIDs dataID) { return(NMEAParser.BuildProprietarySentence(ManufacturerCodes.TNT, "4", new object[] { (int)dataID, 0 })); }
public LocalDataEventArgs(LocalDataIDs localDataID, double value) { LocalDataID = localDataID; Value = value; }