I’m working in a project with the Electron and a GPS.

i’m using the Library TinyGPS++. It works well but i found that the library has a fault in the radians and degree calculation.

The fault is easy only two brackets are missing:

// Converts degrees to radians.

#define myradians(angleDegrees) (angleDegrees * M_PI / 180.0)

// Converts radians to degrees.

#define mydegrees(angleRadians) (angleRadians * 180.0 / M_PI)

should be this:

// Converts degrees to radians.

#define myradians(angleDegrees) ((angleDegrees) * M_PI / 180.0)

// Converts radians to degrees.

#define mydegrees(angleRadians) ((angleRadians) * 180.0 / M_PI)

I can’t edit this library

What can i do?

UUUUUUPS WRONG BLOG! Sorry

Should go to Particle …