Révision 108
Ajouté par Mourougen MARIMOUTOU-POUGARY il y a environ 3 ans
main.c | ||
---|---|---|
"$GPVTG,99.4,T,,M,0.4,N,0.7,K*57",
|
||
"$GPZDA,141914.00,01,02,2006,00,00*69",
|
||
0};
|
||
//Structure
|
||
|
||
typedef struct
|
||
{
|
||
float Latitude;
|
||
float Longitude;
|
||
}Position;
|
||
|
||
//Fonctions Personnels
|
||
|
||
... | ... | |
|
||
}
|
||
|
||
float decode_position(char *trame)
|
||
{
|
||
Position.Latitude=decode_latitude(trame);
|
||
Position.Longitude=decode_longitude(trame);
|
||
|
||
return Position;
|
||
}
|
||
//
|
||
|
||
//Fonction ? modifier !!!!!
|
||
... | ... | |
printf ("Erreur Test unitaire trame_cmp.\n");
|
||
exit(-1);
|
||
}*/
|
||
printf("%d\n",decode_nombre("4545",3,0));
|
||
/*printf("%d\n",decode_nombre("4545",3,0));
|
||
|
||
printf("%f\n",decode_latitude("$GPGGA,141914.00,4545.0000,N,00306.6036,E,1,05,3.4,499.3,M,,M,,*7D"));
|
||
printf("%f\n",decode_longitude("$GPGGA,141914.00,4545.0000,N,00306.6036,E,1,05,3.4,499.3,M,,M,,*7D"));
|
||
printf("%f\n",decode_longitude("$GPGGA,141914.00,4545.0000,N,00306.6036,E,1,05,3.4,499.3,M,,M,,*7D"));*/
|
||
|
||
printf("%f\n",decode_position("$GPGGA,141914.00,4545.0000,N,00306.6036,E,1,05,3.4,499.3,M,,M,,*7D"));
|
||
|
||
}
|
||
|
Formats disponibles : Unified diff
Q10 implementation de la fonction decode_position