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
bdbb3c45
Commit
bdbb3c45
authored
May 21, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1593 from mavlink/text_cleanup
Text cleanup
parents
6aa38d7d
c01a15ff
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
127 additions
and
69 deletions
+127
-69
SensorsComponent.qml
src/AutoPilotPlugins/PX4/SensorsComponent.qml
+119
-64
SensorsComponentController.cc
src/AutoPilotPlugins/PX4/SensorsComponentController.cc
+4
-1
SensorsComponentController.h
src/AutoPilotPlugins/PX4/SensorsComponentController.h
+2
-0
VehicleSummary.qml
src/VehicleSetup/VehicleSummary.qml
+2
-4
No files found.
src/AutoPilotPlugins/PX4/SensorsComponent.qml
View file @
bdbb3c45
This diff is collapsed.
Click to expand it.
src/AutoPilotPlugins/PX4/SensorsComponentController.cc
View file @
bdbb3c45
...
...
@@ -39,6 +39,7 @@ SensorsComponentController::SensorsComponentController(void) :
_gyroButton
(
NULL
),
_accelButton
(
NULL
),
_airspeedButton
(
NULL
),
_levelButton
(
NULL
),
_cancelButton
(
NULL
),
_showOrientationCalArea
(
false
),
_gyroCalInProgress
(
false
),
...
...
@@ -106,6 +107,7 @@ void SensorsComponentController::_startVisualCalibration(void)
_gyroButton
->
setEnabled
(
false
);
_accelButton
->
setEnabled
(
false
);
_airspeedButton
->
setEnabled
(
false
);
_levelButton
->
setEnabled
(
false
);
_cancelButton
->
setEnabled
(
true
);
_progressBar
->
setProperty
(
"value"
,
0
);
...
...
@@ -119,6 +121,7 @@ void SensorsComponentController::_stopCalibration(SensorsComponentController::St
_gyroButton
->
setEnabled
(
true
);
_accelButton
->
setEnabled
(
true
);
_airspeedButton
->
setEnabled
(
true
);
_levelButton
->
setEnabled
(
true
);
_cancelButton
->
setEnabled
(
false
);
if
(
code
==
StopCalibrationSuccess
)
{
...
...
@@ -439,4 +442,4 @@ void SensorsComponentController::cancelCalibration(void)
emit
waitingForCancelChanged
();
_cancelButton
->
setEnabled
(
false
);
_uas
->
stopCalibration
();
}
\ No newline at end of file
}
src/AutoPilotPlugins/PX4/SensorsComponentController.h
View file @
bdbb3c45
...
...
@@ -50,6 +50,7 @@ public:
Q_PROPERTY
(
QQuickItem
*
gyroButton
MEMBER
_gyroButton
)
Q_PROPERTY
(
QQuickItem
*
accelButton
MEMBER
_accelButton
)
Q_PROPERTY
(
QQuickItem
*
airspeedButton
MEMBER
_airspeedButton
)
Q_PROPERTY
(
QQuickItem
*
levelButton
MEMBER
_levelButton
)
Q_PROPERTY
(
QQuickItem
*
cancelButton
MEMBER
_cancelButton
)
Q_PROPERTY
(
QQuickItem
*
orientationCalAreaHelpText
MEMBER
_orientationCalAreaHelpText
)
...
...
@@ -127,6 +128,7 @@ private:
QQuickItem
*
_gyroButton
;
QQuickItem
*
_accelButton
;
QQuickItem
*
_airspeedButton
;
QQuickItem
*
_levelButton
;
QQuickItem
*
_cancelButton
;
QQuickItem
*
_orientationCalAreaHelpText
;
...
...
src/VehicleSetup/VehicleSummary.qml
View file @
bdbb3c45
...
...
@@ -61,10 +61,8 @@ Rectangle {
color
:
autopilot
.
setupComplete
?
qgcPal
.
text
:
"
red
"
font.pointSize
:
autopilot
.
setupComplete
?
ScreenTools
.
defaultFontPointSize
:
ScreenTools
.
fontPointFactor
*
(
20
)
text
:
autopilot
.
setupComplete
?
"
Below you will find a summary of the settings for your vehicle. To the left are the setup buttons for deatiled settings for each component.
"
:
"
WARNING: One or more of your vehicle's components require setup prior to flight. It will be shown with a red circular indicator below.
"
+
"
Find the matching setup button to the left and click it to get to the setup screen you need to complete.
"
+
"
Once all indicators go green you will be ready to fly.
"
"
Below you will find a summary of the settings for your vehicle. To the left are the setup menus for each component.
"
:
"
WARNING: Your vehicle requires setup prior to flight. Please resolve the items marked in red using the menu on the left.
"
}
Item
{
...
...
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