OpenCPN Partial API docs
Loading...
Searching...
No Matches
GnssFix Class Reference

GPS, Galileo, etc. More...

#include <comm_appmsg.h>

Inheritance diagram for GnssFix:
AppMsg KeyProvider

Public Types

enum class  Quality { none , gnss , differential }
 
- Public Types inherited from AppMsg
enum class  Type {
  BasicNavData , GPSWatchdog , GnssFix , AisData ,
  DataPrioNeeded , CustomMsg , Undef
}
 

Public Member Functions

 GnssFix (Position p, time_t t, Quality q=Quality::none, int s_used=-1)
 
std::string to_string () const
 
- Public Member Functions inherited from AppMsg
 AppMsg (AppMsg::Type t)
 
virtual std::string key () const
 
std::string GetKey () const
 Return key used to listen and notify. More...
 
std::string TypeToString (const Type t) const
 
virtual std::string GetKey () const =0
 Return key used to listen and notify. More...
 

Public Attributes

Position pos
 
const time_t time
 
Quality quality
 
int satellites_used
 
- Public Attributes inherited from AppMsg
const Type type
 
const std::string name
 
NavAddr source
 
unsigned short prio
 

Additional Inherited Members

- Protected Member Functions inherited from AppMsg
 AppMsg (AppMsg::Type tp, const std::string &nm, NavAddr src)
 

Detailed Description

GPS, Galileo, etc.

position data point.

Definition at line 133 of file comm_appmsg.h.

Member Enumeration Documentation

◆ Quality

enum class GnssFix::Quality
strong

Definition at line 135 of file comm_appmsg.h.

Constructor & Destructor Documentation

◆ GnssFix()

GnssFix::GnssFix ( Position  p,
time_t  t,
Quality  q = Quality::none,
int  s_used = -1 
)
inline

Definition at line 137 of file comm_appmsg.h.

Member Function Documentation

◆ to_string()

std::string GnssFix::to_string ( ) const
inline

Definition at line 145 of file comm_appmsg.h.

Member Data Documentation

◆ pos

Position GnssFix::pos

Definition at line 151 of file comm_appmsg.h.

◆ quality

Quality GnssFix::quality

Definition at line 153 of file comm_appmsg.h.

◆ satellites_used

int GnssFix::satellites_used

Definition at line 154 of file comm_appmsg.h.

◆ time

const time_t GnssFix::time

Definition at line 152 of file comm_appmsg.h.


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