예제 #1
0
        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));
            }
        }
예제 #2
0
 public string QueryLocDataSet(LocalDataIDs dataID, double value)
 {
     return(NMEAParser.BuildProprietarySentence(ManufacturerCodes.TNT, "P", new object[] { (int)dataID, value }));
 }
예제 #3
0
 public string QueryLocDataGet(LocalDataIDs dataID)
 {
     return(NMEAParser.BuildProprietarySentence(ManufacturerCodes.TNT, "4", new object[] { (int)dataID, 0 }));
 }
예제 #4
0
 public LocalDataEventArgs(LocalDataIDs localDataID, double value)
 {
     LocalDataID = localDataID;
     Value       = value;
 }