|
SBB Host
Host communication with the self balancing bike.
|
A class for the application setting parameters. More...
#include <Params.h>
Public Member Functions | |
| Params (int def_port) | |
| Constructor. More... | |
| ~Params () | |
| Destructor. More... | |
Public Attributes | |
| int | conn_type = SERIAL |
| Connection type. Default is SERIAL. More... | |
| int | port |
| Current serial port used. Default is NULL_PORT. More... | |
| int | baud |
| Current baudrate used. More... | |
| int | socket_port |
| Socket port. Default is 9876. More... | |
| std::string | socket_ip |
| Socket IP address. Default is "192.168.1.0". More... | |
| unsigned int | header |
| Header used for the host communication. More... | |
| unsigned int | terminator |
| Terminator used for the host communication. More... | |
| int | timeout |
| Timeout used for the host communication. More... | |
| int | max_missing_packets |
| Max missing packets during signal streaming. More... | |
| int | window_samples |
| Samples shown in the stream graph. More... | |
| int | forward_samples |
| Foward samples shown in the stream graph. More... | |
| int | stream_graph_decim |
| Stream graph decimation. More... | |
| int | plot_graph_decim |
| Plot graph decimation. More... | |
| int | fps |
| Frame rate of the stream graph. More... | |
| int | num_of_signals |
| Number of signals. More... | |
| int | num_of_controls |
| Number of controls. More... | |
| std::vector< std::string > | signals |
| Name of signals. More... | |
| std::vector< std::string > | controls |
| Name of controls. More... | |
| std::vector< double > | control_min |
| Minimum values of controls. More... | |
| std::vector< double > | control_max |
| Maximum values of controls. More... | |
| std::vector< double > | control_val |
| Default values of controls. More... | |
| std::string | gsettings_dir |
| GSetting directory. More... | |
| int | use_darkmode |
| int | mainWin_width |
| Main window width. More... | |
| int | mainWin_height |
| Main window height. More... | |
| int | messageDialog_width |
| Message dialog width.. More... | |
| int | messageDialog_height |
| Message dialog height. More... | |
| int | settingsDialog_width |
| Setting dialog width. More... | |
| int | settingsDialog_height |
| Setting dialog height. More... | |
| double | label_scale |
| Graph label scale. More... | |
| double | tick_scale |
| Graph tick scale. More... | |
| double | line_width |
| Graph line width. More... | |
| double | graph_width |
| Graph width. More... | |
| double | graph_height |
| Graph height. More... | |
| double | graph_offsetx |
| Graph x offset. More... | |
| double | graph_offsety |
| Graph y offset. More... | |
Static Public Attributes | |
| static constexpr int | SERIAL = 0 |
| USB/Serial connection constant. More... | |
| static constexpr int | TCP = 1 |
| TCP/IP connection constant. More... | |
| static constexpr int | UDP = 2 |
| UDP/Broadcast connection constant. More... | |
A class for the application setting parameters.
Class containing the parameters for the SBB Host Application. Most of the parameters are from the configuration file of by default from config.h. This is only a container, no function members exists.
| Params::Params | ( | int | def_port | ) |
Constructor.
Default constructor.
| def_port | The default value for port. |
| Params::~Params | ( | ) |
Destructor.
Default destructor.
| int Params::baud |
Current baudrate used.
| int Params::conn_type = SERIAL |
Connection type. Default is SERIAL.
| std::vector<double> Params::control_max |
Maximum values of controls.
| std::vector<double> Params::control_min |
Minimum values of controls.
| std::vector<double> Params::control_val |
Default values of controls.
| std::vector<std::string> Params::controls |
Name of controls.
| int Params::forward_samples |
Foward samples shown in the stream graph.
| int Params::fps |
Frame rate of the stream graph.
| double Params::graph_height |
Graph height.
| double Params::graph_offsetx |
Graph x offset.
| double Params::graph_offsety |
Graph y offset.
| double Params::graph_width |
Graph width.
| std::string Params::gsettings_dir |
GSetting directory.
| unsigned int Params::header |
Header used for the host communication.
| double Params::label_scale |
Graph label scale.
| double Params::line_width |
Graph line width.
| int Params::mainWin_height |
Main window height.
| int Params::mainWin_width |
Main window width.
| int Params::max_missing_packets |
Max missing packets during signal streaming.
| int Params::messageDialog_height |
Message dialog height.
| int Params::messageDialog_width |
Message dialog width..
| int Params::num_of_controls |
Number of controls.
| int Params::num_of_signals |
Number of signals.
| int Params::plot_graph_decim |
Plot graph decimation.
| int Params::port |
Current serial port used. Default is NULL_PORT.
|
staticconstexpr |
USB/Serial connection constant.
| int Params::settingsDialog_height |
Setting dialog height.
| int Params::settingsDialog_width |
Setting dialog width.
| std::vector<std::string> Params::signals |
Name of signals.
| std::string Params::socket_ip |
Socket IP address. Default is "192.168.1.0".
| int Params::socket_port |
Socket port. Default is 9876.
| int Params::stream_graph_decim |
Stream graph decimation.
|
staticconstexpr |
TCP/IP connection constant.
| unsigned int Params::terminator |
Terminator used for the host communication.
| double Params::tick_scale |
Graph tick scale.
| int Params::timeout |
Timeout used for the host communication.
|
staticconstexpr |
UDP/Broadcast connection constant.
| int Params::use_darkmode |
| int Params::window_samples |
Samples shown in the stream graph.