NMEA0813フォーマットのGPSから情報を取り出すプログラムです。
Dependents: GPS_test EM_Logger
Diff: nmea0813.cpp
- Revision:
- 3:84d63345eb80
- Parent:
- 2:7870c69fa58c
--- a/nmea0813.cpp Fri Jul 05 04:17:36 2013 +0000 +++ b/nmea0813.cpp Sun Jul 21 07:02:29 2013 +0000 @@ -80,7 +80,7 @@ status = rmc[18]; - number_of_satelite = gga[46]; + number_of_satelite = (int)(gga[45]-0x30)*10 + (int)(gga[46]-0x30); for(int i=0;i<9;i++){ latitude_str[i]=gga[18+i]; @@ -142,6 +142,6 @@ return speed; } -char GPS::get_satelite_number(){ +int GPS::get_satelite_number(){ return number_of_satelite; } \ No newline at end of file