GPS Library does not compile

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

GPS Library does not compile

Postby kpharg » Tue Nov 06, 2012 9:53 pm

Just got the latest version of the GPS library and I get this when trying to compile any example.

Applications/Arduino.app/Contents/Resources/Java/libraries/Adafruit_GPS/Adafruit_GPS.cpp:350: error: no 'boolean Adafruit_GPS::standby()' member function declared in class 'Adafruit_GPS'
/Applications/Arduino.app/Contents/Resources/Java/libraries/Adafruit_GPS/Adafruit_GPS.cpp:362: error: no 'boolean Adafruit_GPS::wakeup()' member function declared in class 'Adafruit_GPS'
kpharg
 
Posts: 4
Joined: Fri Aug 24, 2012 3:38 pm

Re: GPS Library does not compile

Postby matsup » Wed Nov 07, 2012 6:28 am

I met the same situation.

I solved the problem as follows;

(1) you should add 2 lines in Adafruit_GPS.h.
In your case, Adafruit_GPS.h will be at
Applications/Arduino.app/Contents/Resources/Java/libraries/Adafruit_GPS/Adafruit_GPS.h

Following 2 lines should be added in class Adafruit_GPS { } (Maybe after the line including "boolean paused;")
boolean standby();
boolean wakeup();

(2) You should also add
#define PMTK_STANDBY "$PMTK161,0*28"
in Adafruit_GPS.h, line 55 or somewhere. You need this one in Adafruit_GPS.cpp.

(3) Maybe you need PMTK_AWAKE also in Adafruit_GPS.cpp.
But I do now know what strings should be defined.
Therefore I modified in Adafruit_GPS.cpp
return waitForSentence(PMTK_AWAKE);
to
return waitForSentence("PMTK_AWAKE");
(I think this is not the BEST solution. I think we should define PMTK_AWAKE in Adafruit_GPS.h,
but I do not know the GPS unit response against to wakeup. )
matsup
 
Posts: 2
Joined: Tue Oct 30, 2012 6:14 am

Re: GPS Library does not compile

Postby kpharg » Thu Nov 08, 2012 12:29 am

Yeah I just removed the two methods to get it to compile.

Shouldn't this be fixed in the git repository?
kpharg
 
Posts: 4
Joined: Fri Aug 24, 2012 3:38 pm

Re: GPS Library does not compile

Postby matsup » Thu Nov 08, 2012 1:48 am

The git repository should be fixed, but I do not know how and who can do it. (I don't know the git system....)
I commented through "Feedback and Corrections" of the tutorial site of "Adafruit Ultimate GPS".
matsup
 
Posts: 2
Joined: Tue Oct 30, 2012 6:14 am



Return to Arduino

Who is online

Users browsing this forum: No registered users and 14 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [108]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
Android[6]
 
BeagleBone[24]
 
XBee[10]
More Dev Boards[31]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]