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
d46cdc93
Commit
d46cdc93
authored
Aug 20, 2020
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
9d4088b0
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
126 additions
and
307 deletions
+126
-307
APMSensorsComponent.qml
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
+28
-1
APMSensorsComponentController.cc
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
+17
-223
APMSensorsComponentController.h
src/AutoPilotPlugins/APM/APMSensorsComponentController.h
+81
-83
No files found.
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
View file @
d46cdc93
...
...
@@ -569,6 +569,26 @@ SetupPage {
}
// QGCViewDialog
}
// Component - calibratePressureDialogComponent
Component
{
id
:
calibrateGyroDialogComponent
QGCViewDialog
{
id
:
calibrateGyroDialog
function
accept
()
{
controller
.
calibrateGyro
()
calibrateGyroDialog
.
hideDialog
()
}
QGCLabel
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
wrapMode
:
Text
.
WordWrap
text
:
qsTr
(
"
For Gyroscope calibration you will need to place your vehicle on a surface and leave it still.
\n\n
Click Ok to start calibration.
"
)
}
}
}
QGCFlickable
{
id
:
buttonFlickable
anchors.left
:
parent
.
left
...
...
@@ -621,12 +641,19 @@ SetupPage {
}
}
QGCButton
{
width
:
_buttonWidth
text
:
qsTr
(
"
Gyro
"
)
visible
:
activeVehicle
&&
(
activeVehicle
.
multiRotor
|
activeVehicle
.
rover
)
onClicked
:
mainWindow
.
showComponentDialog
(
calibrateGyroDialogComponent
,
qsTr
(
"
Calibrate Gyro
"
),
mainWindow
.
showDialogDefaultWidth
,
StandardButton
.
Cancel
|
StandardButton
.
Ok
)
}
QGCButton
{
width
:
_buttonWidth
text
:
_calibratePressureText
onClicked
:
mainWindow
.
showComponentDialog
(
calibratePressureDialogComponent
,
_calibratePressureText
,
mainWindow
.
showDialogDefaultWidth
,
StandardButton
.
Cancel
|
StandardButton
.
Ok
)
readonly
property
string
_calibratePressureText
:
activeVehicle
.
fixedWing
?
qsTr
(
"
Cal Baro/Airspeed
"
)
:
qsTr
(
"
Calibrate
Pressure
"
)
readonly
property
string
_calibratePressureText
:
activeVehicle
.
fixedWing
?
qsTr
(
"
Baro/Airspeed
"
)
:
qsTr
(
"
Pressure
"
)
}
QGCButton
{
...
...
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
View file @
d46cdc93
This diff is collapsed.
Click to expand it.
src/AutoPilotPlugins/APM/APMSensorsComponentController.h
View file @
d46cdc93
This diff is collapsed.
Click to expand it.
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