Public Member Functions | Public Attributes | Protected Member Functions
labust::tools::Bits2LatLon Class Reference

#include <latlon_encoder.h>

List of all members.

Public Member Functions

 Bits2LatLon (double ilat=0, double ilon=0)
void convert (double lat, double lon, int bits=7)
void setInitLatLon (double lat, double lon)

Public Attributes

double initLat
double initLon
double latitude
double longitude

Protected Member Functions

template<size_t precission>
void bitsToLatlon (double lat, double lon)
void normalize ()

Detailed Description

The utility for trimming and converting latitude and longitude position from a defined bit range integer representation. The class needs an initial latitude and longitude and then propagates the initial latitude and longitude as data arrives. Supported ranges: 7, 10, 14, 18, 22

Todo:
Define how the ranges are specified.

Definition at line 144 of file latlon_encoder.h.


Constructor & Destructor Documentation

labust::tools::Bits2LatLon::Bits2LatLon ( double  ilat = 0,
double  ilon = 0 
) [inline]

Definition at line 147 of file latlon_encoder.h.


Member Function Documentation

void labust::tools::Bits2LatLon::bitsToLatlon< 7 > ( double  lat,
double  lon 
) [inline, protected]

Definition at line 170 of file latlon_encoder.h.

void labust::tools::Bits2LatLon::convert ( double  lat,
double  lon,
int  bits = 7 
) [inline]

Definition at line 243 of file latlon_encoder.h.

void labust::tools::Bits2LatLon::normalize ( ) [inline, protected]

Definition at line 171 of file latlon_encoder.h.

void labust::tools::Bits2LatLon::setInitLatLon ( double  lat,
double  lon 
) [inline]

Definition at line 158 of file latlon_encoder.h.


Member Data Documentation

Definition at line 166 of file latlon_encoder.h.

Definition at line 166 of file latlon_encoder.h.

Definition at line 165 of file latlon_encoder.h.

Definition at line 165 of file latlon_encoder.h.


The documentation for this class was generated from the following file:


snippets
Author(s): Gyula Nagy
autogenerated on Fri Aug 28 2015 11:22:33