martes, 28 de junio de 2011

RMC - NMEA has its own version of essential gps pvt (position, velocity, time)

RMC - NMEA has its own version of essential gps pvt (position, velocity, time) data. It is called RMC, The Recommended Minimum, which will look similar to:
$GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A

Where:
     RMC          Recommended Minimum sentence C
     123519       Fix taken at 12:35:19 UTC
     A            Status A=active or V=Void.
     4807.038,N   Latitude 48 deg 07.038' N
     01131.000,E  Longitude 11 deg 31.000' E
     022.4        Speed over the ground in knots
     084.4        Track angle in degrees True
     230394       Date - 23rd of March 1994
     003.1,W      Magnetic Variation
     *6A          The checksum data, always begins with *
Note that, as of the 2.3 release of NMEA, there is a new field in the RMC sentence at the end just prior to the checksum. For more information on this field see here.

real  :

$GPRMC,184203.999,V,2340.2965,S,04632.7430,W,000.0,000.0,280611,,,N*7E




union G_RMC
{
struct  {
            char RMC [6];
            char UTC[10];                  //  Fix taken at  UTC  184203.999
            char Status[1];                //   Status A=active or V=Void.
            char Latitude[9];             //   Latitude  2340.2965
            char N_S[1];                  //   N / S
            char Longitude[11];        //  Longitude 04632.7430 E - W
            char W_E[1];                 //  W / E
            char Speed_k [5];          //  Speed over the ground in knots
            char Track_angle[5];      //  Track angle in degrees True
            char DATE [6];              // 280611  Date - 26rd of 06  2011
            char Magnetic_V[5];      // Magnetic Variation
            char Magnetic_W[1];     //  "W" si hay datos
            char Magnetic_N[1];        /*  N novalid data ,
                                                        A modo outonomo ,
                                                        D diferencial ,
                                                        E estimado deat zone ,
                                                       M entrada manual
                                                        S modo simulado */
            char checksum[2];                //  checksum   7E
             };
                    struct
             {
             char GPS_GPRMCN[];
             };
};
union G_RMC GPS_RMC;

No hay comentarios.:

Publicar un comentario