The dialog for all the programm settings.
More...
#include <settingsDialog.h>
List of all members.
Private Attributes |
Ui::settingsDialog | ui |
Static Private Attributes |
static const unsigned char | ALLMOTORS = 90 |
| Motor 4 (back right)
|
static const unsigned char | MOTOR1 = 10 |
static const unsigned char | MOTOR2 = 20 |
| Motor 1 (front left)
|
static const unsigned char | MOTOR3 = 30 |
| Motor 2 (front right)
|
static const unsigned char | MOTOR4 = 40 |
| Motor 3 (back left)
|
Detailed Description
The dialog for all the programm settings.
- Author:
- Markus Knapp Dialog for showing the current settings or to let them change / interact with the main window.
Definition at line 35 of file settingsDialog.h.
Constructor & Destructor Documentation
SettingsDialog::SettingsDialog |
( |
QWidget * |
parent = 0 | ) |
|
Member Function Documentation
Qt::CheckState SettingsDialog::getCheckBoxSaveSettings |
( |
| ) |
|
int SettingsDialog::getSliderMaximumSpeed |
( |
void |
| ) |
|
int SettingsDialog::getSliderMinimumSpeed |
( |
void |
| ) |
|
int SettingsDialog::getSliderMotorSpeed |
( |
int |
motor | ) |
|
- Returns:
- The slider value of a motor speed.
- Parameters:
-
motor | is the motor number. |
Definition at line 86 of file settingsDialog.cpp.
int SettingsDialog::getSliderObstacleLaserScannerValue |
( |
| ) |
|
- Returns:
- The slider value of an obstacle distance for the laser scanner (when a alarm should be released).
Definition at line 121 of file settingsDialog.cpp.
int SettingsDialog::getSliderObstacleValue |
( |
| ) |
|
- Returns:
- The slider value of an obstacle distance for the infrared and ultrasonic sensors (when a alarm should be released).
Definition at line 115 of file settingsDialog.cpp.
int SettingsDialog::getSliderPassageWidth |
( |
| ) |
|
- Returns:
- The width of a possible robot passage in centimeters (cm) where to drive through.
Definition at line 127 of file settingsDialog.cpp.
int SettingsDialog::getSliderStraightForwardDeviationValue |
( |
| ) |
|
- Returns:
- The slider value of the deviation to drive forward (deviation to 90 degrees).
Definition at line 133 of file settingsDialog.cpp.
void SettingsDialog::on_sliderAllMotorsSpeed_sliderReleased |
( |
| ) |
|
|
privateslot |
void SettingsDialog::on_sliderMaximumSpeed_sliderReleased |
( |
| ) |
|
|
privateslot |
void SettingsDialog::on_sliderMotor1Speed_sliderReleased |
( |
| ) |
|
|
privateslot |
void SettingsDialog::on_sliderMotor2Speed_sliderReleased |
( |
| ) |
|
|
privateslot |
void SettingsDialog::on_sliderMotor3Speed_sliderReleased |
( |
| ) |
|
|
privateslot |
void SettingsDialog::on_sliderMotor4Speed_sliderReleased |
( |
| ) |
|
|
privateslot |
void SettingsDialog::setCheckBoxSaveSettings |
( |
Qt::CheckState |
state | ) |
|
Checks or unckecks the SaveSettings checkbox, depending on the value read from the ini-file.
Definition at line 268 of file settingsDialog.cpp.
void SettingsDialog::setMaximumSpeed |
( |
int |
speed | ) |
|
|
signal |
Emits the new maximum speed of the robot(s motors).
- Parameters:
-
speed | is the speed (0 - 255). |
void SettingsDialog::setMinObstacleDistance |
( |
int |
distance | ) |
|
|
signal |
This signal emits set the minimum distance, which the robot needs. Used by the infrared and ultra sonic sensors.
- Parameters:
-
- See also:
- ObstacleCheckThread
void SettingsDialog::setMinObstacleDistanceLaserFront |
( |
int |
distance | ) |
|
|
signal |
void SettingsDialog::setMinObstacleDistanceLaserRear |
( |
int |
distance | ) |
|
|
signal |
void SettingsDialog::setMotorSpeed |
( |
int |
motor, |
|
|
int |
speed |
|
) |
| |
|
signal |
Emits the speed of a motor.
- Parameters:
-
motor | is the motor number. |
speed | is the speed (0 - 255). |
void SettingsDialog::setPassageWidth |
( |
int |
width | ) |
|
|
signal |
This signal emits the passage width in centimeters (cm), where the robots has to fit through.
- See also:
- ObstacleCheckThread
void SettingsDialog::setRobotSlot |
( |
int |
angle | ) |
|
|
signal |
void SettingsDialog::setSliderMaximumSpeed |
( |
int |
speed | ) |
|
Sets the slider maximum speed.
- Parameters:
-
speed | is the maximum speed of the motors. |
Definition at line 238 of file settingsDialog.cpp.
void SettingsDialog::setSliderMinimumSpeed |
( |
int |
speed | ) |
|
Sets the slider minimum speed.
- Parameters:
-
speed | is the minimum speed of the motors. |
Definition at line 232 of file settingsDialog.cpp.
void SettingsDialog::setSliderMotorSpeed |
( |
int |
motor, |
|
|
int |
value |
|
) |
| |
Sets the slider MotorSpeed.
- Parameters:
-
motor | is the motor number. |
value | is the speed of the motor. |
Definition at line 145 of file settingsDialog.cpp.
void SettingsDialog::setSliderObstacleLaserScannerValue |
( |
int |
value | ) |
|
Sets the slider value of an obstacle distance for the laser scanner (when a alarm should be released).
- Parameters:
-
Definition at line 250 of file settingsDialog.cpp.
void SettingsDialog::setSliderObstacleValue |
( |
int |
value | ) |
|
Sets the slider value of an obstacle distance for the infrared and ultrasonic sensors (when a alarm should be released).
- Parameters:
-
Definition at line 244 of file settingsDialog.cpp.
void SettingsDialog::setSliderPassageWidth |
( |
int |
width | ) |
|
Sets the slider value of the passage width, where the robot has to fit through.
- Parameters:
-
width | is the minimum width in centimeters (cm). |
Definition at line 256 of file settingsDialog.cpp.
void SettingsDialog::setSliderStraightForwardDeviation |
( |
int |
angle | ) |
|
Sets the slider value of the deviation to drive forward (deviation to 90 degrees).
- Parameters:
-
angle | is the maximum angle in degrees. |
Definition at line 262 of file settingsDialog.cpp.
void SettingsDialog::setStraightForwardDeviation |
( |
int |
deviation | ) |
|
|
signal |
This signal emit the deviation to 90 degrees when the robot drives forward.
- Parameters:
-
deviation | is the angle in degrees. |
- See also:
- ObstacleCheckThread
Member Data Documentation
const unsigned char SettingsDialog::ALLMOTORS = 90 |
|
staticprivate |
const unsigned char SettingsDialog::MOTOR1 = 10 |
|
staticprivate |
const unsigned char SettingsDialog::MOTOR2 = 20 |
|
staticprivate |
const unsigned char SettingsDialog::MOTOR3 = 30 |
|
staticprivate |
const unsigned char SettingsDialog::MOTOR4 = 40 |
|
staticprivate |
Ui::settingsDialog SettingsDialog::ui |
|
private |
The documentation for this class was generated from the following files: