GPS NMEA Lib


hi guys

i trying use nmea lib found here  

http://www.maartenlamers.com/nmea/nmea.html


i can working alright feeding gps straight serial in decode wondering possible feed data in decode string instead of directly serial.  

here piece of code have tried, c string gprmc sentence stored in it:

code: [select]
   

    (int i=0; i<70 ; i++) {
     
    if (gps.decode(c[i])) {
      if (gps.gprmc_status() == 'a') {
        if (gps.gprmc_distance_to(dest_latitude, dest_longitude, mtr) < 500.0) {
         serial.println("zomg");
       }
       else {
       serial.println("zgomg");
       }
     }
   }
 }
 


now have no idea if possible or close should doing  :-[  but code above output nothing yet same code serial fed in directly work.

any ideas ?



Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > GPS NMEA Lib


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums