COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
Transmitter information. More...
#include <jsondef.h>
Public Member Functions | |
json11::Json | to_json () const |
Convert class contents to JSON object. More... | |
void | from_json (const string &s) |
Set class contents from JSON string. More... | |
Public Attributes | |
uint16_t | opmode = 0 |
Operating mode. More... | |
uint16_t | modulation = 0 |
Data modulation. More... | |
uint16_t | rssi = 0 |
RSSI. More... | |
uint16_t | pktsize = 0 |
Packet Size. More... | |
double | freq = 0. |
Input Frequency. More... | |
double | maxfreq = 0. |
Maximum frequency allowed. More... | |
double | minfreq = 0. |
Minimum frequency allowed. More... | |
float | powerin = 0.f |
Current RX Power. More... | |
float | powerout = 0.f |
Current TX Power. More... | |
float | maxpower = 0.f |
Output Power limit. More... | |
float | band = 0.f |
Input Filter bandpass. More... | |
float | squelch_tone = 0.f |
repeater squelch tone frequency More... | |
double | goodratio = 0. |
Good Packet Percentage. More... | |
double | txutc = 0. |
Last TX time. More... | |
double | uptime = 10. |
Connection Uptime. More... | |
Transmitter information.
This structure holds the information concerning transmitters.
|
inline |
|
inline |
Set class contents from JSON string.
Parses the provided JSON-formatted string and sets the class data. String should be formatted like the string returned from to_json()
s | JSON-formatted string to set class contents to |
uint16_t txrstruc::opmode = 0 |
Operating mode.
uint16_t txrstruc::modulation = 0 |
Data modulation.
uint16_t txrstruc::rssi = 0 |
RSSI.
uint16_t txrstruc::pktsize = 0 |
Packet Size.
double txrstruc::freq = 0. |
Input Frequency.
double txrstruc::maxfreq = 0. |
Maximum frequency allowed.
double txrstruc::minfreq = 0. |
Minimum frequency allowed.
float txrstruc::powerin = 0.f |
Current RX Power.
float txrstruc::powerout = 0.f |
Current TX Power.
float txrstruc::maxpower = 0.f |
Output Power limit.
float txrstruc::band = 0.f |
Input Filter bandpass.
float txrstruc::squelch_tone = 0.f |
repeater squelch tone frequency
double txrstruc::goodratio = 0. |
Good Packet Percentage.
double txrstruc::txutc = 0. |
Last TX time.
double txrstruc::uptime = 10. |
Connection Uptime.