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
c2eac21c
Commit
c2eac21c
authored
Aug 07, 2018
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
f8f4d5ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
6 deletions
+20
-6
SensorsComponentController.cc
src/AutoPilotPlugins/PX4/SensorsComponentController.cc
+1
-1
SensorsComponentController.h
src/AutoPilotPlugins/PX4/SensorsComponentController.h
+1
-1
SensorsSetup.qml
src/AutoPilotPlugins/PX4/SensorsSetup.qml
+18
-4
No files found.
src/AutoPilotPlugins/PX4/SensorsComponentController.cc
View file @
c2eac21c
...
...
@@ -167,7 +167,7 @@ void SensorsComponentController::_stopCalibration(SensorsComponentController::St
emit
resetStatusTextArea
();
}
if
(
_magCalInProgress
)
{
emit
setCompassRotations
();
emit
magCalComplete
();
}
break
;
...
...
src/AutoPilotPlugins/PX4/SensorsComponentController.h
View file @
c2eac21c
...
...
@@ -92,7 +92,7 @@ signals:
void
orientationCalSidesRotateChanged
(
void
);
void
resetStatusTextArea
(
void
);
void
waitingForCancelChanged
(
void
);
void
setCompassRotations
(
void
);
void
magCalComplete
(
void
);
private
slots
:
void
_handleUASTextMessage
(
int
uasId
,
int
compId
,
int
severity
,
QString
text
);
...
...
src/AutoPilotPlugins/PX4/SensorsSetup.qml
View file @
c2eac21c
...
...
@@ -131,11 +131,11 @@ Item {
onResetStatusTextArea
:
statusLog
.
text
=
statusTextAreaDefaultText
on
SetCompassRotations
:
{
if
(
!
_sensorsHaveFixedOrientation
&&
(
showCompass0Rot
||
showCompass1Rot
||
showCompass2Rot
))
{
on
MagCalComplete
:
{
//
if (!_sensorsHaveFixedOrientation && (showCompass0Rot || showCompass1Rot || showCompass2Rot)) {
setOrientationsDialogShowBoardOrientation
=
false
showDialog
(
setOrientationsDialogComponent
,
qsTr
(
"
Set Compass Rotation(s)
"
),
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Ok
)
}
showDialog
(
setOrientationsDialogComponent
,
qsTr
(
"
Compass Calibration Complete
"
),
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Ok
)
//
}
}
onWaitingForCancelChanged
:
{
...
...
@@ -252,6 +252,20 @@ Item {
anchors.top
:
parent
.
top
spacing
:
ScreenTools
.
defaultFontPixelHeight
QGCLabel
{
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
text
:
qsTr
(
"
Set your compass orientations below and the make sure to reboot the vehicle prior to flight.
"
)
}
QGCButton
{
text
:
qsTr
(
"
Reboot Vehicle
"
)
onClicked
:
{
controller
.
vehicle
.
rebootVehicle
()
hideDialog
()
}
}
QGCLabel
{
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
...
...
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