The Parser class.
More...
#include <parser.hh>
Definition at line 31 of file parser.hh.
◆ Parser()
◆ ~Parser()
◆ calculateAcceleration()
float Parser::calculateAcceleration |
( |
const int & |
acceleration | ) |
|
|
private |
◆ calculateSpeedLeft()
float Parser::calculateSpeedLeft |
( |
const int & |
xAxis, |
|
|
const int & |
yAxis |
|
) |
| |
|
private |
- Parameters
-
[in] | xAxis | Value of swing on x axis |
[in] | yAxis | Value of swing on y axis |
- Returns
- Speed value on left motor
Definition at line 168 of file parser.cpp.
◆ calculateSpeedRight()
float Parser::calculateSpeedRight |
( |
const int & |
xAxis, |
|
|
const int & |
yAxis |
|
) |
| |
|
private |
- Parameters
-
[in] | xAxis | Value of swing on x axis |
[in] | yAxis | Value of swing on y axis |
- Returns
- Speed value on right motor
Definition at line 105 of file parser.cpp.
◆ changedBattery
void Parser::changedBattery |
( |
int |
battery | ) |
|
|
signal |
- Parameters
-
[out] | battery | Value of battery volatge |
◆ changedJoystick
void Parser::changedJoystick |
( |
const QPoint & |
coordinates | ) |
|
|
signal |
- Parameters
-
[out] | coordinates | Values of swing on x and y axis |
◆ changedLeftMotorAcceleration
void Parser::changedLeftMotorAcceleration |
( |
const QString & |
accelerationValue | ) |
|
|
signal |
- Parameters
-
[out] | accelerationValue | Value of left motor acceleration |
◆ changedLeftMotorGSpeed
void Parser::changedLeftMotorGSpeed |
( |
const QString & |
speedValue | ) |
|
|
signal |
- Parameters
-
[out] | speedValue | Value of left motor given speed |
◆ changedLeftMotorSpeed
void Parser::changedLeftMotorSpeed |
( |
const QString & |
speedValue | ) |
|
|
signal |
- Parameters
-
[out] | speedValue | Value of left motor speed |
◆ changedLidar
void Parser::changedLidar |
( |
const std::map< float, int > |
lidarData | ) |
|
|
signal |
- Parameters
-
[out] | lidarData | Map containing lidar data [key is angle and value is distance] |
◆ changedRightMotorAcceleration
void Parser::changedRightMotorAcceleration |
( |
const QString & |
accelerationValue | ) |
|
|
signal |
- Parameters
-
[out] | accelerationValue | Value of right motor acceleration |
◆ changedRightMotorGSpeed
void Parser::changedRightMotorGSpeed |
( |
const QString & |
speedValue | ) |
|
|
signal |
- Parameters
-
[out] | speedValue | Value of right motor given speed |
◆ changedRightMotorSpeed
void Parser::changedRightMotorSpeed |
( |
const QString & |
speedValue | ) |
|
|
signal |
- Parameters
-
[out] | speedValue | Value of right motor speed |
◆ parseFrame()
bool Parser::parseFrame |
( |
const std::string & |
frame | ) |
|
- Parameters
-
[in] | frame | One line from serial port |
- Returns
- Boolean value of parsing frame
Definition at line 25 of file parser.cpp.
◆ processData()
void Parser::processData |
( |
| ) |
|
◆ _battery
◆ _CRC16
◆ _leftAcceleration
int Parser::_leftAcceleration |
|
private |
◆ _leftSpeed
◆ _lidarData
std::map<float, int> Parser::_lidarData |
|
private |
◆ _rightAcceleration
int Parser::_rightAcceleration |
|
private |
◆ _rightSpeed
◆ _xAxis
◆ _yAxis
The documentation for this class was generated from the following files: