Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
2ad4430f
Commit
2ad4430f
authored
Sep 17, 2010
by
Bryan Godbolt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added class for radio calibration window
parent
d09690cc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
0 deletions
+68
-0
QGCRemoteControlView.cc
src/ui/QGCRemoteControlView.cc
+9
-0
QGCRemoteControlView.h
src/ui/QGCRemoteControlView.h
+3
-0
RadioCalibrationWindow.cc
src/ui/RadioCalibration/RadioCalibrationWindow.cc
+6
-0
RadioCalibrationWindow.h
src/ui/RadioCalibration/RadioCalibrationWindow.h
+50
-0
No files found.
src/ui/QGCRemoteControlView.cc
View file @
2ad4430f
...
...
@@ -25,6 +25,7 @@ This file is part of the QGROUNDCONTROL project
* @file
* @brief Implementation of QGCRemoteControlView
* @author Lorenz Meier <mail@qgroundcontrol.org>
* @author Bryan Godbolt <godbolt@ece.ualberta.ca>
*/
#include <QGridLayout>
...
...
@@ -70,6 +71,14 @@ QGCRemoteControlView::QGCRemoteControlView(QWidget *parent) :
layout
->
addItem
(
rssiLayout
,
2
,
0
,
1
,
2
);
setVisible
(
false
);
calibrate
=
new
QPushButton
(
tr
(
"Calibrate"
),
this
);
QHBoxLayout
*
calibrateButtonLayout
=
new
QHBoxLayout
();
calibrateButtonLayout
->
addWidget
(
calibrate
,
0
,
Qt
::
AlignHCenter
);
layout
->
addItem
(
calibrateButtonLayout
,
3
,
0
,
1
,
2
);
calibrationWindow
=
new
QWidget
(
this
,
Qt
::
Window
);
connect
(
calibrate
,
SIGNAL
(
clicked
()),
calibrationWindow
,
SLOT
(
show
()));
connect
(
UASManager
::
instance
(),
SIGNAL
(
activeUASSet
(
int
)),
this
,
SLOT
(
setUASId
(
int
)));
}
...
...
src/ui/QGCRemoteControlView.h
View file @
2ad4430f
...
...
@@ -32,6 +32,7 @@ This file is part of the QGROUNDCONTROL project
#include <QWidget>
#include <QVector>
#include <QPushButton>
namespace
Ui
{
class
QGCRemoteControlView
;
...
...
@@ -68,6 +69,8 @@ protected:
QVector
<
QProgressBar
*>
progressBars
;
QProgressBar
*
rssiBar
;
QLabel
*
nameLabel
;
QPushButton
*
calibrate
;
QWidget
*
calibrationWindow
;
private:
Ui
::
QGCRemoteControlView
*
ui
;
...
...
src/ui/RadioCalibration/RadioCalibrationWindow.cc
0 → 100644
View file @
2ad4430f
#include "RadioCalibrationWindow.h"
RadioCalibrationWindow
::
RadioCalibrationWindow
(
QWidget
*
parent
)
:
QWidget
(
parent
,
Qt
::
Window
)
{
}
src/ui/RadioCalibration/RadioCalibrationWindow.h
0 → 100644
View file @
2ad4430f
#ifndef RADIOCALIBRATIONWINDOW_H
#define RADIOCALIBRATIONWINDOW_H
#include <QWidget>
#include <QLabel>
#include <QGroupBox>
#include <QPushButton>
#include <QVector>
class
RadioCalibrationWindow
:
public
QWidget
{
Q_OBJECT
public:
explicit
RadioCalibrationWindow
(
QWidget
*
parent
=
0
);
signals:
public
slots
:
protected:
class
AirfoilServoCalibrator
:
public
QWidget
{
Q_OBJECT
public:
explicit
AirfoilServoCalibrator
(
QWidget
*
parent
=
0
);
signals:
void
highSetpointChanged
(
float
);
void
centerSetpointChanged
(
float
);
void
lowSetpointChanged
(
float
);
public
slots
:
void
channelChanged
(
float
raw
);
protected:
QLabel
*
pulseWidth
;
QPushButton
*
highButton
;
QPushButton
*
centerButton
;
QPushButton
*
lowButton
;
float
high
;
float
center
;
float
low
;
QVector
<
float
>
log
;
};
};
#endif // RADIOCALIBRATIONWINDOW_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment