Petit Poucet
 
Loading...
Searching...
No Matches
petitpoucet::serverinterface::PPServer Class Reference

This class is the core of PetitPoucet and stores the server as private member as well as methods for creation of server and solution reading. More...

#include <ServerInterface.hh>

Public Member Functions

 ~PPServer ()
 
void GetServerStatus (int *stat, int *log_stat, int *byte, int *bps, std::string *stringMessage)
 Gets the status of the server and stores it in pointers given as parameters.
 
void GetCurrentSolution (long double &longitude, long double &latitude, long double &altitude, int &signalToNoiseRatio, int &timeStamp, CoordinateSystem coordinateSystem, double &horizontalDilutionOfPrecision, std::string &fixQuality)
 

Static Public Member Functions

static PPServer SetupCorrectedReaderServer (std::string *casterName, std::string *serialPortName, PPServerOptions options)
 Sets a server up for correcting and reading corrected data.
 
static PPServer SetupCorrectionServer (std::string *casterName, std::string *serialPortName, PPServerOptions options)
 Sets a server up to send correction data to an RTK reciever, and returns it as a Server object.
 
static PPServer SetupReaderServer (std::string *serialPortName, PPServerOptions options)
 Sets a server up to listen to an RTK reciever, and returns it as a Server object.
 

Detailed Description

This class is the core of PetitPoucet and stores the server as private member as well as methods for creation of server and solution reading.

Constructor & Destructor Documentation

◆ ~PPServer()

petitpoucet::serverinterface::PPServer::~PPServer ( )
inline

Member Function Documentation

◆ GetCurrentSolution()

void petitpoucet::serverinterface::PPServer::GetCurrentSolution ( long double &  longitude,
long double &  latitude,
long double &  altitude,
int &  signalToNoiseRatio,
int &  timeStamp,
CoordinateSystem  coordinateSystem,
double &  horizontalDilutionOfPrecision,
std::string &  fixQuality 
)

◆ GetServerStatus()

void petitpoucet::serverinterface::PPServer::GetServerStatus ( int *  stat,
int *  log_stat,
int *  byte,
int *  bps,
std::string *  stringMessage 
)

Gets the status of the server and stores it in pointers given as parameters.

◆ SetupCorrectedReaderServer()

static PPServer petitpoucet::serverinterface::PPServer::SetupCorrectedReaderServer ( std::string *  casterName,
std::string *  serialPortName,
PPServerOptions  options 
)
static

Sets a server up for correcting and reading corrected data.

◆ SetupCorrectionServer()

PPServer petitpoucet::serverinterface::PPServer::SetupCorrectionServer ( std::string *  casterName,
std::string *  serialPortName,
PPServerOptions  options 
)
static

Sets a server up to send correction data to an RTK reciever, and returns it as a Server object.

Parameters
std::string*casterName the pointer to the name of the caster we use for the RTK
std::string*serialPortName the pointer to the name of the serial port where the RTK reciever is connected
PPServerOptionsoptions The options for the server
Returns
PPServer a running server that sends the correction data to the reciever

◆ SetupReaderServer()

PPServer petitpoucet::serverinterface::PPServer::SetupReaderServer ( std::string *  serialPortName,
PPServerOptions  options 
)
static

Sets a server up to listen to an RTK reciever, and returns it as a Server object.

Parameters
std::string*serialPortName the pointer to the name of the serial port where the RTK reciever is connected
PPServerOptionsoptions The options for the server
Returns
PPServer a running server that reads the data from the reciever

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