Exemple #1
0
 public SurveyCalibration Calibrate()
 {
     if (ReferenceEquals(_surveyCalibration, null))
     {
         var surveyBuilder = new SurveyCalibrationBuilder();
         var result        = surveyBuilder.Build(SurveyPoints.ToArray());
         _surveyCalibration = result;
     }
     return(_surveyCalibration);
 }
Exemple #2
0
 private void OnTimerTick(object sender, EventArgs e)
 {
     if (_surveyPointProvider.HasSurveyPoint())
     {
         var surveyPoint = GetSurveyPoint();
         if (surveyPoint == null)
         {
             return;
         }
         if (_storePoints)
         {
             ++TotalPointsCount;
             surveyPoint.Seqno = TotalPointsCount;
             SurveyPoints.Add(surveyPoint);
         }
         OnSurveyPointReceived();
     }
 }