Hello,
I have a problem with GPS . I am using Arduino MKRZERO but the example programs from the ultimate GPS does not seem to work at all. I have this error :
Arduino: 1.8.7 (Windows 10), Board: "Arduino MKRZERO"
testgps:28:27: error: no matching function for call to 'Adafruit_GPS::Adafruit_GPS(Serial_*)'
Adafruit_GPS GPS(&mySerial);
^
C:\Users\RoboSpecialists-PC05\Desktop\testgps\testgps.ino:28:27: note: candidates are:
In file included from C:\Users\RoboSpecialists-PC05\Desktop\testgps\testgps.ino:1:0:
C:\Users\RoboSpecialists-PC05\Documents\Arduino\libraries\Adafruit_GPS-master/Adafruit_GPS.h:115:3: note: Adafruit_GPS::Adafruit_GPS(HardwareSerial*)
Adafruit_GPS(HardwareSerial *ser); // Constructor when using HardwareSerial
^
C:\Users\RoboSpecialists-PC05\Documents\Arduino\libraries\Adafruit_GPS-master/Adafruit_GPS.h:115:3: note: no known conversion for argument 1 from 'Serial_' to 'HardwareSerial'
C:\Users\RoboSpecialists-PC05\Documents\Arduino\libraries\Adafruit_GPS-master/Adafruit_GPS.h:104:7: note: constexpr Adafruit_GPS::Adafruit_GPS(const Adafruit_GPS&)
class Adafruit_GPS {
^
C:\Users\RoboSpecialists-PC05\Documents\Arduino\libraries\Adafruit_GPS-master/Adafruit_GPS.h:104:7: note: no known conversion for argument 1 from 'Serial_*' to 'const Adafruit_GPS&'
C:\Users\RoboSpecialists-PC05\Documents\Arduino\libraries\Adafruit_GPS-master/Adafruit_GPS.h:104:7: note: constexpr Adafruit_GPS::Adafruit_GPS(Adafruit_GPS&&)
C:\Users\RoboSpecialists-PC05\Documents\Arduino\libraries\Adafruit_GPS-master/Adafruit_GPS.h:104:7: note: no known conversion for argument 1 from 'Serial_*' to 'Adafruit_GPS&&'
testgps:78:8: error: expected constructor, destructor, or type conversion before '(' token
SIGNAL(TIMER0_COMPA_vect) {
^
testgps:78:7: error: expected constructor, destructor, or type conversion before '(' token
SIGNAL(TIMER0_COMPA_vect) {
^
\testgps\testgps.ino: In function 'void useInterrupt(boolean)':
testgps:93:5: error: 'OCR0A' was not declared in this scope
OCR0A = 0xAF;
^
testgps:94:5: error: 'TIMSK0' was not declared in this scope
TIMSK0 |= _BV(OCIE0A);
^
testgps:94:19: error: 'OCIE0A' was not declared in this scope
TIMSK0 |= _BV(OCIE0A);
^
testgps:94:25: error: '_BV' was not declared in this scope
TIMSK0 |= _BV(OCIE0A);
^
testgps:98:5: error: 'TIMSK0' was not declared in this scope
TIMSK0 &= ~_BV(OCIE0A);
^
testgps:98:20: error: 'OCIE0A' was not declared in this scope
TIMSK0 &= ~_BV(OCIE0A);
^
testgps:98:26: error: '_BV' was not declared in this scope
TIMSK0 &= ~_BV(OCIE0A);
^
exit status 1
no matching function for call to 'Adafruit_GPS::Adafruit_GPS(Serial_*)'
Any help would be useful , thank you.