Developmental Flight Test Instrumentation
|
Serial driver to acquire data from a generic Remote I/O device. More...
#include <rio.hh>
Public Slots | |
void | readData (void) |
Slot to read in data over serial and parse complete packets. | |
![]() | |
virtual void | readData (void)=0 |
Slot to read in data over serial and parse complete packets. | |
Signals | |
void | measurementUpdate (RIOData data) |
Emitted to share new RIOData. | |
Public Member Functions | |
RIO (Settings *_settings, QObject *_parent=nullptr) | |
Constructor. More... | |
![]() | |
SerialSensor (Settings *_settings, QObject *_parent=nullptr) | |
Constructor. More... | |
~SerialSensor () | |
Destructor. | |
void | configureSerial (QString _portName) |
Set the serial port parameters. More... | |
void | init () |
Initialize the serial port. | |
bool | isOpen (void) |
Returns true if the serial port is open. More... | |
virtual void | open (void) |
Opens the serial port. More... | |
void | setBaudRate (quint32 rate) |
Set the serial port baud rate. More... | |
void | threadStart (void) |
Start the sensor in a thread. | |
Additional Inherited Members | |
![]() | |
Settings * | settings = nullptr |
Settings object. | |
QString | portName {""} |
Serial port name. | |
QSerialPort::BaudRate | baudRate {QSerialPort::Baud115200} |
Serial port baud rate. | |
bool | _valid_serial = false |
Indicates if serial port passed validation. | |
QSerialPort * | _port = nullptr |
Serial port object. | |
Serial driver to acquire data from a generic Remote I/O device.
Reads in data from a generic RIO over a serial port and parses the data.
The data packet format is $$$field_1$field_2$...$field_n$checksum\r\n
with the checksum byte being represented in hex.
|
explicit |
Constructor.
_settings | Pointer to settings object. |
_parent | Pointer to parent QObject. |