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
addfdbc4
Commit
addfdbc4
authored
Jun 12, 2016
by
Don Gagne
Committed by
GitHub
Jun 12, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3542 from DonLakeFlyer/SensorsSmall
Sensors: small screen fixes
parents
9f6cb35a
939b9c85
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
290 additions
and
253 deletions
+290
-253
APMSensorsComponent.qml
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
+273
-250
APMSensorsComponentController.cc
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
+4
-0
APMSensorsComponentController.h
src/AutoPilotPlugins/APM/APMSensorsComponentController.h
+2
-0
SensorsComponent.qml
src/AutoPilotPlugins/PX4/SensorsComponent.qml
+2
-0
SensorsComponentController.cc
src/AutoPilotPlugins/PX4/SensorsComponentController.cc
+3
-0
SensorsComponentController.h
src/AutoPilotPlugins/PX4/SensorsComponentController.h
+2
-0
FactTextField.qml
src/FactSystem/FactControls/FactTextField.qml
+1
-1
ParameterEditorDialog.qml
src/QmlControls/ParameterEditorDialog.qml
+3
-2
No files found.
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
View file @
addfdbc4
This diff is collapsed.
Click to expand it.
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
View file @
addfdbc4
...
...
@@ -26,6 +26,7 @@ APMSensorsComponentController::APMSensorsComponentController(void) :
_accelButton
(
NULL
),
_nextButton
(
NULL
),
_cancelButton
(
NULL
),
_setOrientationsButton
(
NULL
),
_showOrientationCalArea
(
false
),
_magCalInProgress
(
false
),
_accelCalInProgress
(
false
),
...
...
@@ -85,6 +86,7 @@ void APMSensorsComponentController::_startLogCalibration(void)
_compassButton
->
setEnabled
(
false
);
_accelButton
->
setEnabled
(
false
);
_setOrientationsButton
->
setEnabled
(
false
);
if
(
_accelCalInProgress
)
{
_nextButton
->
setEnabled
(
true
);
}
...
...
@@ -95,6 +97,7 @@ void APMSensorsComponentController::_startVisualCalibration(void)
{
_compassButton
->
setEnabled
(
false
);
_accelButton
->
setEnabled
(
false
);
_setOrientationsButton
->
setEnabled
(
false
);
_cancelButton
->
setEnabled
(
true
);
_resetInternalState
();
...
...
@@ -138,6 +141,7 @@ void APMSensorsComponentController::_stopCalibration(APMSensorsComponentControll
_compassButton
->
setEnabled
(
true
);
_accelButton
->
setEnabled
(
true
);
_setOrientationsButton
->
setEnabled
(
true
);
_nextButton
->
setEnabled
(
false
);
_cancelButton
->
setEnabled
(
false
);
...
...
src/AutoPilotPlugins/APM/APMSensorsComponentController.h
View file @
addfdbc4
...
...
@@ -36,6 +36,7 @@ public:
Q_PROPERTY
(
QQuickItem
*
accelButton
MEMBER
_accelButton
)
Q_PROPERTY
(
QQuickItem
*
nextButton
MEMBER
_nextButton
)
Q_PROPERTY
(
QQuickItem
*
cancelButton
MEMBER
_cancelButton
)
Q_PROPERTY
(
QQuickItem
*
setOrientationsButton
MEMBER
_setOrientationsButton
)
Q_PROPERTY
(
QQuickItem
*
orientationCalAreaHelpText
MEMBER
_orientationCalAreaHelpText
)
Q_PROPERTY
(
bool
compassSetupNeeded
READ
compassSetupNeeded
NOTIFY
setupNeededChanged
)
...
...
@@ -123,6 +124,7 @@ private:
QQuickItem
*
_accelButton
;
QQuickItem
*
_nextButton
;
QQuickItem
*
_cancelButton
;
QQuickItem
*
_setOrientationsButton
;
QQuickItem
*
_orientationCalAreaHelpText
;
bool
_showOrientationCalArea
;
...
...
src/AutoPilotPlugins/PX4/SensorsComponent.qml
View file @
addfdbc4
...
...
@@ -108,6 +108,7 @@ QGCView {
airspeedButton
:
airspeedButton
levelButton
:
levelButton
cancelButton
:
cancelButton
setOrientationsButton
:
setOrientationsButton
orientationCalAreaHelpText
:
orientationCalAreaHelpText
onResetStatusTextArea
:
statusLog
.
text
=
statusTextAreaDefaultText
...
...
@@ -398,6 +399,7 @@ QGCView {
}
QGCButton
{
id
:
setOrientationsButton
width
:
parent
.
buttonWidth
text
:
qsTr
(
"
Set Orientations
"
)
onClicked
:
showDialog
(
setOrientationsDialogComponent
,
qsTr
(
"
Set Orientations
"
),
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Ok
)
...
...
src/AutoPilotPlugins/PX4/SensorsComponentController.cc
View file @
addfdbc4
...
...
@@ -30,6 +30,7 @@ SensorsComponentController::SensorsComponentController(void) :
_airspeedButton
(
NULL
),
_levelButton
(
NULL
),
_cancelButton
(
NULL
),
_setOrientationsButton
(
NULL
),
_showOrientationCalArea
(
false
),
_gyroCalInProgress
(
false
),
_magCalInProgress
(
false
),
...
...
@@ -98,6 +99,7 @@ void SensorsComponentController::_startVisualCalibration(void)
_accelButton
->
setEnabled
(
false
);
_airspeedButton
->
setEnabled
(
false
);
_levelButton
->
setEnabled
(
false
);
_setOrientationsButton
->
setEnabled
(
false
);
_cancelButton
->
setEnabled
(
true
);
_resetInternalState
();
...
...
@@ -140,6 +142,7 @@ void SensorsComponentController::_stopCalibration(SensorsComponentController::St
_accelButton
->
setEnabled
(
true
);
_airspeedButton
->
setEnabled
(
true
);
_levelButton
->
setEnabled
(
true
);
_setOrientationsButton
->
setEnabled
(
true
);
_cancelButton
->
setEnabled
(
false
);
if
(
code
==
StopCalibrationSuccess
)
{
...
...
src/AutoPilotPlugins/PX4/SensorsComponentController.h
View file @
addfdbc4
...
...
@@ -40,6 +40,7 @@ public:
Q_PROPERTY
(
QQuickItem
*
airspeedButton
MEMBER
_airspeedButton
)
Q_PROPERTY
(
QQuickItem
*
levelButton
MEMBER
_levelButton
)
Q_PROPERTY
(
QQuickItem
*
cancelButton
MEMBER
_cancelButton
)
Q_PROPERTY
(
QQuickItem
*
setOrientationsButton
MEMBER
_setOrientationsButton
)
Q_PROPERTY
(
QQuickItem
*
orientationCalAreaHelpText
MEMBER
_orientationCalAreaHelpText
)
Q_PROPERTY
(
bool
showOrientationCalArea
MEMBER
_showOrientationCalArea
NOTIFY
showOrientationCalAreaChanged
)
...
...
@@ -121,6 +122,7 @@ private:
QQuickItem
*
_airspeedButton
;
QQuickItem
*
_levelButton
;
QQuickItem
*
_cancelButton
;
QQuickItem
*
_setOrientationsButton
;
QQuickItem
*
_orientationCalAreaHelpText
;
bool
_showGyroCalArea
;
...
...
src/FactSystem/FactControls/FactTextField.qml
View file @
addfdbc4
...
...
@@ -21,7 +21,7 @@ QGCTextField {
// At this point all Facts are numeric
validator
:
DoubleValidator
{}
inputMethodHints
:
ScreenTools
.
isiOS
?
Qt
.
ImhNone
:
// iOS numeric keyboard has not done button, we can't use
e
it
Qt
.
ImhNone
:
// iOS numeric keyboard has not done button, we can't use it
Qt
.
ImhFormattedNumbersOnly
// Forces use of virtual numeric keyboard
onEditingFinished
:
{
...
...
src/QmlControls/ParameterEditorDialog.qml
View file @
addfdbc4
...
...
@@ -104,8 +104,9 @@ QGCViewDialog {
visible
:
fact
.
enumStrings
.
length
==
0
||
validate
//focus: true
// At this point all Facts are numeric
inputMethodHints
:
Qt
.
ImhFormattedNumbersOnly
inputMethodHints
:
ScreenTools
.
isiOS
?
Qt
.
ImhNone
:
// iOS numeric keyboard has not done button, we can't use it
Qt
.
ImhFormattedNumbersOnly
// Forces use of virtual numeric keyboard
}
QGCButton
{
...
...
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