Révision 150
Ajouté par Mourougen MARIMOUTOU-POUGARY il y a environ 3 ans
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
Q10 implementation de la fonction regroupant decode_latitude et decode_longitude + test