libosmscout 0.1
Loading...
Searching...
No Matches
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

References currentPosition, currentSpeed, horizontalAccuracy, osmscout::NavigationMessage::NavigationMessage(), and osmscout::NavigationMessage::timestamp.

Member Data Documentation

◆ currentPosition

const GeoCoord osmscout::GPSUpdateMessage::currentPosition

Referenced by GPSUpdateMessage().

◆ currentSpeed

const double osmscout::GPSUpdateMessage::currentSpeed

Referenced by GPSUpdateMessage().

◆ horizontalAccuracy

const Distance osmscout::GPSUpdateMessage::horizontalAccuracy

Referenced by GPSUpdateMessage().


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