Projet

Général

Profil

« Précédent | Suivant » 

Révision 150

Q10 implementation de la fonction regroupant decode_latitude et decode_longitude + test

Voir les différences:

branch/MARIMOUTOU_Mourougen/main.c
}
float decode_position(char *trame)
float decode_position(char *trame,Position Pos)
{
Position.Latitude=decode_latitude(trame);
Position.Longitude=decode_longitude(trame);
return Position;
Pos.Latitude=decode_latitude(trame);
Pos.Longitude=decode_longitude(trame);
}
//
......
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_position("$GPGGA,141914.00,4545.0000,N,00306.6036,E,1,05,3.4,499.3,M,,M,,*7D"));
Position pos;
printf("%f\n",decode_position("$GPGGA,141914.00,4545.0000,N,00306.6036,E,1,05,3.4,499.3,M,,M,,*7D",pos));
}

Formats disponibles : Unified diff