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
08959fb3
Commit
08959fb3
authored
Nov 05, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated sensor calibration filenames
parent
4d2b2d6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
QGCPX4SensorCalibration.cc
src/ui/px4_configuration/QGCPX4SensorCalibration.cc
+9
-9
No files found.
src/ui/px4_configuration/QGCPX4SensorCalibration.cc
View file @
08959fb3
...
...
@@ -30,9 +30,9 @@ QGCPX4SensorCalibration::QGCPX4SensorCalibration(QWidget *parent) :
ui
->
autopilotComboBox
->
setEnabled
(
false
);
ui
->
magComboBox
->
setEnabled
(
false
);
setInstructionImage
(
":/files/images/px4/calibration/accel_
z-
.png"
);
setAutopilotImage
(
":/files/images/px4/calibration/accel_
z-
.png"
);
setGpsImage
(
":/files/images/px4/calibration/accel_
z-
.png"
);
setInstructionImage
(
":/files/images/px4/calibration/accel_
down
.png"
);
setAutopilotImage
(
":/files/images/px4/calibration/accel_
down
.png"
);
setGpsImage
(
":/files/images/px4/calibration/accel_
down
.png"
);
// Fill combo boxes
ui
->
autopilotComboBox
->
addItem
(
tr
(
"Default Orientation"
),
0
);
...
...
@@ -402,7 +402,7 @@ void QGCPX4SensorCalibration::handleTextMessage(int uasid, int compId, int sever
if
(
text
.
endsWith
(
" calibration: done"
)
||
text
.
endsWith
(
" calibration: failed"
))
{
// XXX use a confirmation image or something
setInstructionImage
(
":/files/images/px4/calibration/accel_
z-
.png"
);
setInstructionImage
(
":/files/images/px4/calibration/accel_
down
.png"
);
if
(
text
.
endsWith
(
" calibration: done"
))
{
ui
->
progressBar
->
setValue
(
100
);
}
else
{
...
...
@@ -446,7 +446,7 @@ void QGCPX4SensorCalibration::handleTextMessage(int uasid, int compId, int sever
}
if
(
text
.
endsWith
(
" calibration: started"
))
{
setInstructionImage
(
":/files/images/px4/calibration/accel_
z-
.png"
);
setInstructionImage
(
":/files/images/px4/calibration/accel_
down
.png"
);
}
// XXX color messages according to severity
...
...
@@ -466,28 +466,28 @@ void QGCPX4SensorCalibration::handleTextMessage(int uasid, int compId, int sever
void
QGCPX4SensorCalibration
::
gyroButtonClicked
()
{
setInstructionImage
(
":/files/images/px4/calibration/accel_
z-
.png"
);
setInstructionImage
(
":/files/images/px4/calibration/accel_
down
.png"
);
activeUAS
->
executeCommand
(
MAV_CMD_PREFLIGHT_CALIBRATION
,
1
,
1.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
0
);
ui
->
progressBar
->
setValue
(
0
);
}
void
QGCPX4SensorCalibration
::
magButtonClicked
()
{
setInstructionImage
(
":/files/images/px4/calibration/accel_
z-
.png"
);
setInstructionImage
(
":/files/images/px4/calibration/accel_
down
.png"
);
activeUAS
->
executeCommand
(
MAV_CMD_PREFLIGHT_CALIBRATION
,
1
,
0.0
f
,
1.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
0
);
ui
->
progressBar
->
setValue
(
0
);
}
void
QGCPX4SensorCalibration
::
accelButtonClicked
()
{
setInstructionImage
(
":/files/images/px4/calibration/accel_
z-
.png"
);
setInstructionImage
(
":/files/images/px4/calibration/accel_
down
.png"
);
activeUAS
->
executeCommand
(
MAV_CMD_PREFLIGHT_CALIBRATION
,
1
,
0.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
1.0
f
,
0.0
f
,
0.0
f
,
0
);
ui
->
progressBar
->
setValue
(
0
);
}
void
QGCPX4SensorCalibration
::
diffPressureButtonClicked
()
{
setInstructionImage
(
":/files/images/px4/calibration/accel_
z-
.png"
);
setInstructionImage
(
":/files/images/px4/calibration/accel_
down
.png"
);
activeUAS
->
executeCommand
(
MAV_CMD_PREFLIGHT_CALIBRATION
,
1
,
0.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
1.0
f
,
0.0
f
,
0
);
ui
->
progressBar
->
setValue
(
0
);
}
...
...
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