Révision 207
Ajouté par Abdou FAYE il y a environ 3 ans
branch/faye/sp4a12/main.c | ||
---|---|---|
res += decode_int(ch[i]);
|
||
}
|
||
return res;
|
||
}
|
||
float conversion_lat(char a[])
|
||
{
|
||
int i=0,vir=0;
|
||
float res=0;
|
||
for (i=0;i!='\n';i++){
|
||
if (a[i]==','){
|
||
vir+=1;
|
||
}
|
||
if (vir==2){
|
||
res=decode_nombre(a[],2)
|
||
}
|
||
}
|
||
|
||
}
|
||
//Fonction ? modifier !!!!!
|
||
void traitement(char * trame)
|
||
... | ... | |
exit(-1);
|
||
}
|
||
|
||
}
|
||
if (conversion_lat("$GPGGA,141914.00,4545.0000,N,00306.6036,E,1,05,3.4,499.3,M,,M,,*7D")!=4545.0000){
|
||
printf ("Erreur Test unitaire conversion lat.\n");
|
||
exit(-1);
|
||
|
||
}
|
||
|
||
}
|
||
|
||
// Ne pas modifier cette fonction
|
Formats disponibles : Unified diff
conversion