Révision 244
Ajouté par Damien REGENT il y a environ 3 ans
branch/Regent/sp4a12/main.c | ||
---|---|---|
|
||
}
|
||
|
||
void decode_trame(char * tr ...){
|
||
//Appel de ma_fonction() ;
|
||
}
|
||
|
||
int trame_cmp(char * trame, char * type)
|
||
{
|
||
int i;
|
||
... | ... | |
void traitement(char * trame)
|
||
{
|
||
static int cpt=0 ;
|
||
cpt++ ;
|
||
printf ("> %s\n",trame);
|
||
if(trame_cmp(trame,"GPGGA")==1)
|
||
{
|
||
printf ("> %s\n",trame);
|
||
cpt++;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
//Ajouter vos tests unitaires dans cette fonction.
|
||
void tests_unitaires(void){
|
||
... | ... | |
printf ("Erreur Test unitaire basique.\n");
|
||
exit(-1);
|
||
}
|
||
/*if (trame_cmp("$GPGGA suite chaine","GPGGA")!=1){
|
||
if (trame_cmp("$GPGGA suite chaine","GPGGA")!=1){
|
||
printf ("Erreur Test unitaire trame_cmp.\n");
|
||
exit(-1);
|
||
}*/
|
||
}
|
||
}
|
||
|
||
|
||
|
||
// Ne pas modifier cette fonction
|
||
int main(int argc,char ** argv)
|
Formats disponibles : Unified diff
Programme modifié pour afficher seulement les trames GPGGA