mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-27 03:29:16 +02:00
Added support for GPI speed/red light cameras
This commit is contained in:
18
src/common/garmin.h
Normal file
18
src/common/garmin.h
Normal file
@ -0,0 +1,18 @@
|
||||
#ifndef GARMIN_H
|
||||
#define GARMIN_H
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
inline double toWGS32(qint32 v)
|
||||
{
|
||||
return (double)(((double)v / (double)(1<<31)) * (double)180);
|
||||
}
|
||||
|
||||
inline double toWGS24(qint32 coord)
|
||||
{
|
||||
return (coord < 0x800000)
|
||||
? (double)coord * 360.0 / (double)(1<<24)
|
||||
: (double)(coord - 0x1000000) * 360.0 / (double)(1<<24);
|
||||
}
|
||||
|
||||
#endif // GARMIN_H
|
Reference in New Issue
Block a user