GNSS receiver tools
1
Tools for use with GNSS receivers
|
Class for an object that reads from a stream and calls methods in a Listener object. More...
#include <Parser.hh>
Public Types | |
typedef std::function< void(bool ack, SkyTraqBin::Output_message *msg)> | ResponseHandler_Skytraq |
Type for a function called when a query/get input message gets a response. More... | |
typedef std::function< void(bool ack, UBX::Output_message *msg)> | ResponseHandler_Ublox |
Public Member Functions | |
Interface (std::FILE *f, Listener::ptr l) | |
Constructor. More... | |
void | read (void) |
Read a small amount of data from the file, parse it, send messages to the listener object. More... | |
bool | is_sendable (void) const |
void | send (SkyTraqBin::Input_message::ptr msg) |
Send a message to the Skytraq device. More... | |
void | send (SkyTraqBin::Input_message::ptr msg, ResponseHandler_Skytraq rh) |
Send a message to the Skytraq device, call lambda when response is received. More... | |
void | send (UBX::Input_message::ptr msg) |
Send a message to the Ublox device. More... | |
void | send (UBX::Input_message::ptr msg, ResponseHandler_Ublox rh) |
Send a message to the Ublox device, call lambda when response is received. More... | |
Class for an object that reads from a stream and calls methods in a Listener object.
typedef std::function<void(bool ack, SkyTraqBin::Output_message* msg)> GNSS::Interface::ResponseHandler_Skytraq |
Type for a function called when a query/get input message gets a response.
ack | Did the input message receive an ack (true), or a nack (false)? |
msg | The output message that was received |
There are three ways this lambda will be called:
The third variant only happens with response-type messages.
typedef std::function<void(bool ack, UBX::Output_message* msg)> GNSS::Interface::ResponseHandler_Ublox |
GNSS::Interface::Interface | ( | std::FILE * | f, |
Listener::ptr | l | ||
) |
|
inline |
void GNSS::Interface::read | ( | void | ) |
void GNSS::Interface::send | ( | SkyTraqBin::Input_message::ptr | msg | ) |
void GNSS::Interface::send | ( | SkyTraqBin::Input_message::ptr | msg, |
ResponseHandler_Skytraq | rh | ||
) |
void GNSS::Interface::send | ( | UBX::Input_message::ptr | msg | ) |
Send a message to the Ublox device.
void GNSS::Interface::send | ( | UBX::Input_message::ptr | msg, |
ResponseHandler_Ublox | rh | ||
) |