Esempio n. 1
0
 protected virtual void OnMovement(Movement mov)
 {
     if (Movement!=null) Movement(this,mov);
 }
Esempio n. 2
0
        private void reset_gps_vars()
        {
            strreceived="";
            sentencecount=0;

            pos = null;
            pos = new Position();
            mov = null;
            mov = new Movement();
            satellites = null;
            lasterror="";

            distancetowaypoint=0;
            bearingtowaypoint=0;
            coursecorrection=0;

            InitDistance = false;

            // Position dilution of precision
            pdop=50;

            // Horizontal dilution of precision
            hdop=50;

            // Vertical dilution of precision
            hdop=50;
        }
Esempio n. 3
0
 private void gps_Movement(object sender, OpenNETCF.IO.Serial.GPS.Movement mov)
 {
     OnMovement(new GpsMovementEventArgs(mov.SpeedKph));
 }