Ejemplo n.º 1
0
 protected virtual void OnMovement(Movement mov)
 {
     if (Movement!=null) Movement(this,mov);
 }
Ejemplo 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;
        }
Ejemplo n.º 3
0
 private void gps_Movement(object sender, OpenNETCF.IO.Serial.GPS.Movement mov)
 {
     OnMovement(new GpsMovementEventArgs(mov.SpeedKph));
 }