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
1ce28cb9
Commit
1ce28cb9
authored
Sep 13, 2013
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed sensor config
parent
cb3618b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
QGCPX4SensorCalibration.cc
src/ui/px4_configuration/QGCPX4SensorCalibration.cc
+6
-3
QGCPX4SensorCalibration.h
src/ui/px4_configuration/QGCPX4SensorCalibration.h
+3
-0
No files found.
src/ui/px4_configuration/QGCPX4SensorCalibration.cc
View file @
1ce28cb9
...
...
@@ -118,7 +118,7 @@ QGCPX4SensorCalibration::QGCPX4SensorCalibration(QWidget *parent) :
connect
(
ui
->
autopilotComboBox
,
SIGNAL
(
activated
(
int
)),
this
,
SLOT
(
setAutopilotOrientation
(
int
)));
connect
(
ui
->
magComboBox
,
SIGNAL
(
activated
(
int
)),
this
,
SLOT
(
setGpsOrientation
(
int
)));
// XXX ask for params (if not loaded)
updateIcons
();
}
QGCPX4SensorCalibration
::~
QGCPX4SensorCalibration
()
...
...
@@ -282,9 +282,8 @@ void QGCPX4SensorCalibration::setGpsImage(const QString &path)
ui
->
gpsLabel
->
setPixmap
(
gpsIcon
.
scaled
(
w
,
h
,
Qt
::
KeepAspectRatio
,
Qt
::
SmoothTransformation
));
}
void
QGCPX4SensorCalibration
::
resizeEvent
(
QResizeEvent
*
event
)
void
QGCPX4SensorCalibration
::
updateIcons
(
)
{
int
w
=
ui
->
iconLabel
->
width
();
int
h
=
ui
->
iconLabel
->
height
();
ui
->
iconLabel
->
setPixmap
(
instructionIcon
.
scaled
(
w
,
h
,
Qt
::
KeepAspectRatio
,
Qt
::
SmoothTransformation
));
...
...
@@ -296,7 +295,11 @@ void QGCPX4SensorCalibration::resizeEvent(QResizeEvent* event)
int
wg
=
ui
->
gpsLabel
->
width
();
int
hg
=
ui
->
gpsLabel
->
height
();
ui
->
gpsLabel
->
setPixmap
(
gpsIcon
.
scaled
(
wg
,
hg
,
Qt
::
KeepAspectRatio
,
Qt
::
SmoothTransformation
));
}
void
QGCPX4SensorCalibration
::
resizeEvent
(
QResizeEvent
*
event
)
{
updateIcons
();
QWidget
::
resizeEvent
(
event
);
}
...
...
src/ui/px4_configuration/QGCPX4SensorCalibration.h
View file @
1ce28cb9
...
...
@@ -75,9 +75,12 @@ protected:
void
setMagCalibrated
(
bool
calibrated
);
void
setGyroCalibrated
(
bool
calibrated
);
void
setAccelCalibrated
(
bool
calibrated
);
void
updateIcons
();
private:
Ui
::
QGCPX4SensorCalibration
*
ui
;
};
#endif // QGCPX4SENSORCALIBRATION_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