Closed mkschneider closed 6 years ago
Hi, @mkschneider!
I see, the problem is that the UbxGps
constructor is waiting for HardwareSerial
instance, instead of SoftwareSerial
. My bad, I described the problem with SoftwareSerial, but did not test it.
Thank you a lot for your feedback! Just gimme a couple of days and I will update the library. Then I'll wait for your feedback about using the CAM-M8Q, since I haven't tested the library with 8th generation of u-blox modules.
Hi, here I found a workaround.
I need to make some adjustment for my Atmega328p.
See below !
UbxGpsNavPvt gps( (HardwareSerial&) ss);
void setup()
{
gps.begin(GPS_SPEED);
ss.begin(GPS_SPEED); // GPS don't sync without this line
}
Next, I had to modify UbxGps.cpp and UbxGpx.h and UbxGpsNavPvt.h (see attachement).
Many thanks for your great instruction on using u-blox modules with arduino. However, I am a real beginner with arduino programming, so pardon my stupid question. I have connected a CAM-M8Q to an Arduino Uno and am able to monitor UBX binary code on the serial monitor. However, I could not figure out how to feed this into UbxGpsNavPvt to convert it. The line
UbxGpsNavPvt gps(ss);
(code below is throwing me: no matching function for call to 'UbxGpsNavPvt::UbxGpsNavPvt(SoftwareSerial&)'Many thanks for any advice