libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::GPSUpdateMessage Struct Referencefinal

Message to pass to the NavigationEngine each time gps state has changed. More...

#include <Agents.h>

+ Inheritance diagram for osmscout::GPSUpdateMessage:

Public Member Functions

 GPSUpdateMessage (const Timestamp &timestamp, const GeoCoord &currentPosition, double currentSpeed, const Distance &horizontalAccuracy)
 
- Public Member Functions inherited from osmscout::NavigationMessage
 NavigationMessage (const Timestamp &timestamp)
 
virtual ~NavigationMessage ()=default
 

Public Attributes

const GeoCoord currentPosition
 
const double currentSpeed
 
const Distance horizontalAccuracy
 
- Public Attributes inherited from osmscout::NavigationMessage
const Timestamp timestamp
 

Detailed Description

Message to pass to the NavigationEngine each time gps state has changed.

TODO: Pass information about the accuracy of the signal

Constructor & Destructor Documentation

◆ GPSUpdateMessage()

osmscout::GPSUpdateMessage::GPSUpdateMessage ( const Timestamp timestamp,
const GeoCoord currentPosition,
double  currentSpeed,
const Distance horizontalAccuracy 
)
Parameters
timestamp
currentPosition
currentSpeedif negative, speed is not known
horizontalAccuracyif negative, accuracy is not known

Member Data Documentation

◆ currentPosition

const GeoCoord osmscout::GPSUpdateMessage::currentPosition

◆ currentSpeed

const double osmscout::GPSUpdateMessage::currentSpeed

◆ horizontalAccuracy

const Distance osmscout::GPSUpdateMessage::horizontalAccuracy

The documentation for this struct was generated from the following files: