Abe Takumi
/
GPS_test
test
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "nmea0813.h" 00003 00004 GPS gps(p13,p14); 00005 Serial pc(USBTX,USBRX); 00006 00007 int main() { 00008 wait(2.0); 00009 while(1){ 00010 wait(1.0); 00011 pc.printf("latitude:%f,longitude:%f,status:%c,satelite:%c,speed:%f\n",gps.get_latitude(),gps.get_longitude(),gps.get_status(),gps.get_satelite_number(),gps.get_speed()); 00012 } 00013 }
Generated on Fri Jul 22 2022 06:53:42 by 1.7.2