Projet

Général

Profil

« Précédent | Suivant » 

Révision 306

Ajouté par Guillaume DAVID il y a presque 3 ans

affichage decode_trame

Voir les différences:

main.c
"$GPZDA,141914.00,01,02,2006,00,00*69",
0};
//Fonction ? modifier !!!!!
void traitement(char * trame){
static int cpt=0;
cpt++;
//Fonction ? modifier !!!!!
if (trame_cmp(trame,"GPGGA")==1){
printf ("> %s\n",trame);
}
}
int trame_cmp(char *trame, char *type){
int test=1;
int i;
......
return pos;
}
void traitement(char * trame){
static int cpt=0;
cpt++;
if (trame_cmp(trame,"GPGGA")==1){
printf("> %s\n",trame);
printf("> > latitude : %.16f degre\n",decode_trame(trame).Lat);
printf("> > longitude : %.16f degre\n\n\n",decode_trame(trame).Long);
}
}
//Ajouter vos tests unitaires dans cette fonction.
void tests_unitaires(void){

Formats disponibles : Unified diff