Skip to content

Commit dd21168

Browse files
Some fixes do doxygen
1 parent 88c9fa6 commit dd21168

File tree

13 files changed

+24
-18
lines changed

13 files changed

+24
-18
lines changed

trikCommunicator/include/trikCommunicator/trikCommunicator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class TrikCommunicator : public trikKernel::TrikServer
4545

4646
public:
4747
/// Constructor that creates its own instance of a script runner.
48-
/// @param configPath - path to config file for trikControl, for example, /home/root/trik/.
48+
/// @param brick - reference to robot brick.
4949
/// @param startDirPath - path to the directory from which the application was executed.
5050
TrikCommunicator(trikControl::Brick &brick, QString const &startDirPath);
5151

trikControl/include/trikControl/display.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public slots:
6464
/// Draw line on the widget.
6565
/// @param x1 - first point's x coordinate.
6666
/// @param y1 - first point's y coordinate.
67-
/// @param x1 - second point's x coordinate.
68-
/// @param y1 - second point's y coordinate.
67+
/// @param x2 - second point's x coordinate.
68+
/// @param y2 - second point's y coordinate.
6969
void drawLine(int x1, int y1, int x2, int y2);
7070

7171
/// Draw point on the widget.

trikControl/include/trikControl/sensor3d.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ class TRIKCONTROL_EXPORT Sensor3d : public QObject
3737
/// @param deviceFile - device file for this sensor.
3838
Sensor3d(int min, int max, QString const &deviceFile);
3939

40-
~Sensor3d();
40+
~Sensor3d() override;
4141

4242
signals:
43+
/// Emitted when new sensor reading is ready.
4344
void newData(QVector<int> reading);
4445

4546
public slots:

trikControl/src/angularServoMotor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class AngularServoMotor : public ServoMotor
3333
/// @param max - value of duty_ns corresponding to full counter clockwise rotation of a motor. Used to calculate
3434
/// actual values from values in range [-90..90] from client program.
3535
/// @param zero - value of duty_ns corresponding to 0 degrees rotation of a motor.
36+
/// @param stop - value of duty_ns corresponding to poweroff state.
3637
/// @param dutyFile - file for setting duty of PWM signal supplied to this motor.
3738
/// @param periodFile - file for setting period of PWM signal supplied to this motor
3839
/// @param period - value of period for setting while initialization

trikControl/src/continiousRotationServoMotor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class ContiniousRotationServoMotor : public ServoMotor
3333
/// @param max - value of duty_ns corresponding to full forward of a motor. Used to calculate actual values from
3434
/// values in range [-100..100] from client program.
3535
/// @param zero - value of duty_ns corresponding to full stop of a motor.
36+
/// @param stop - value of duty_ns corresponding to poweroff state.
3637
/// @param dutyFile - file for setting duty of PWM signal supplied to this motor.
3738
/// @param periodFile - file for setting period of PWM signal supplied to this motor
3839
/// @param period - value of period for setting while initialization

trikControl/src/graphicsWidget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class GraphicsWidget : public QWidget
5050
/// Draw line on the widget.
5151
/// @param x1 - first point's x coordinate.
5252
/// @param y1 - first point's y coordinate.
53-
/// @param x1 - second point's x coordinate.
54-
/// @param y1 - second point's y coordinate.
53+
/// @param x2 - second point's x coordinate.
54+
/// @param y2 - second point's y coordinate.
5555
void drawLine(int x1, int y1, int x2, int y2);
5656

5757
/// Draw rect on the widget.

trikControl/src/powerMotor.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ class PowerMotor : public Motor
3131

3232
public:
3333
/// Constructor.
34+
/// @param communicator - reference to an object that handles I2C communication.
35+
/// @param i2cCommandNumber - I2C command corresponding to this device.
3436
/// @param invert - true, if power values set by setPower slot shall be negated before sent to motor.
3537
PowerMotor(I2cCommunicator &communicator, int i2cCommandNumber, bool invert);
3638

3739
/// Destructor.
38-
~PowerMotor();
40+
~PowerMotor() override;
3941

4042
public slots:
4143
/// Sets current motor power to specified value, 0 to stop motor.

trikControl/src/sensor3dWorker.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class Sensor3dWorker : public QObject
3535
Sensor3dWorker(int min, int max, QString const &deviceFile);
3636

3737
signals:
38+
/// Emitted when new sensor reading is ready.
3839
void newData(QVector<int> reading);
3940

4041
public slots:
@@ -54,4 +55,4 @@ private slots:
5455
QReadWriteLock mLock;
5556
};
5657

57-
}
58+
}

trikControl/src/servoMotor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class ServoMotor : public Motor
3232
/// @param min - minimal value of duty_ns whose meaning and range depends on motor type.
3333
/// @param max - maximal value of duty_ns whose meaning and range depends on motor type.
3434
/// @param zero - neutral value of duty_ns.
35+
/// @param stop - value of duty_ns corresponding to poweroff state.
3536
/// @param dutyFile - file for setting duty of PWM signal supplied to this motor.
3637
/// @param periodFile - file for setting period of PWM signal supplied to this motor.
3738
/// @param period - value of period for setting while initialization.
3839
/// @param invert - true, if power values set by setPower slot shall be negated before sent to motor.
39-
/// @param isContiniousRotationServo - true, if this servo is continious rotation, false if it is angular.
4040
ServoMotor(int min, int max, int zero, int stop, QString const &dutyFile, QString const &periodFile, int period
4141
, bool invert);
4242

trikGui/startWidget.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ class StartWidget : public MainWidget
5050

5151
public:
5252
/// Constructor
53+
/// @param controller - controller object that provides access to underlying runtime.
5354
/// @param configPath - full path to configuration files.
54-
/// @param startDirPath - path to the directory from which the application was executed.
5555
/// @param parent - parent of this widget in Qt object hierarchy.
5656
explicit StartWidget(Controller &controller, QString const &configPath, QWidget *parent = 0);
5757

58-
~StartWidget();
58+
~StartWidget() override;
5959

6060
void renewFocus() override;
6161

6262
private:
63-
virtual void keyPressEvent(QKeyEvent *event);
63+
void keyPressEvent(QKeyEvent *event) override;
6464

6565
void launch();
6666

0 commit comments

Comments
 (0)