Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
pos2nmea: handle properly positions W and S #3
This fixes a bug where positions west of Greenwich or south of the
The bug happens as follows. For instance, to convert longitude -3.58021, the code computes -3 * 100 + 60 * 0.58021 and then inverts the sign of the whole thing. The correct computation is (-1) * (-3) * 100+60 * 0.058021.