fu-hsi / fugps Goto Github PK
View Code? Open in Web Editor NEWArduino library for parsing NMEA 0183 (GPS) sentences.
License: MIT License
Arduino library for parsing NMEA 0183 (GPS) sentences.
License: MIT License
Could change to fix:
float time = atoi(_tokens[1]);
->
float time = atof(_tokens[1]);
Hi.
I'm creating a gps logger with the help of your library on Arduino UNO.
Everything works fine, but the lines
gps.Hours:gps.Minutes:gpsSeconds at the moment give me:
00:203:173
How could I convert these to normal, like
19:12:15
thank you
hello,
i ma using your lovely library and i receive data with it, but i cant receive date information. Is there any reason why?
Hi
I try to use your library on ESP32 but you advise to use HardwareSerial. What library should I use for it ? as Neowserial as indicated in readme is only software serial and not supported on ESP32 !
Thanks
Vincèn
Hi
I am trying to use the library in an APRS project. This is on ESP32 hardware hence libraries are implemented for ESP32 not std Arduino boards.
I am having a hardtime passing the HardwareSerial object to the FuGPS constructor, this is not working since it is not a stream although is derived from one.
Definitions;
`HardwareSerial gpsSerial(1);
FuGPS fuGPS(gpsSerial);
`
Some of the errors I've getting are
"C:\Users\T520\Documents\Arduino\libraries\FuGPS_Library\src\FuGPS.cpp: In member function 'void FuGPS::sendCommand(const char*)':
C:\Users\T520\Documents\Arduino\libraries\FuGPS_Library\src\FuGPS.cpp:57:28: error: passing 'const Stream' as 'this' argument discards qualifiers [-fpermissive]
_stream.println(command);"
and
"C:\Users\T520\Documents\Arduino\libraries\FuGPS_Library\src\FuGPS.cpp: In member function 'bool FuGPS::read()':
C:\Users\T520\Documents\Arduino\libraries\FuGPS_Library\src\FuGPS.cpp:122:27: error: passing 'const Stream' as 'this' argument discards qualifiers [-fpermissive]
if (_stream.available())"
This is not a bug (I assume), but I note that in the examples it is recommended to use HardwareSerial hence my motivation to keep trying.
From your source it seems you are expecting a Stream object to be passed in the constructor, how can I do this and use a HardwareSerial lib?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.