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
2f7b754a
Commit
2f7b754a
authored
Oct 23, 2017
by
Don Gagne
Committed by
GitHub
Oct 23, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5774 from DonLakeFlyer/StableMerge
Stable merge to master
parents
5793c550
9833c9af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
APMSensorsComponent.qml
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
+1
-1
APMSensorsComponentController.cc
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
+6
-3
JoystickManager.cc
src/Joystick/JoystickManager.cc
+1
-1
No files found.
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
View file @
2f7b754a
...
...
@@ -170,7 +170,7 @@ SetupPage {
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
spacing
:
Math
.
round
(
ScreenTools
.
defaultFontPixelHeight
/
2
)
visible
:
sensorParams
.
rgCompassAvailable
[
index
]
visible
:
sensorParams
.
rgCompassAvailable
[
index
]
&&
sensorParams
.
rgCompassUseFact
[
index
].
value
property
real
greenMaxThreshold
:
8
*
(
sensorParams
.
rgCompassExternal
[
index
]
?
1
:
2
)
property
real
yellowMaxThreshold
:
15
*
(
sensorParams
.
rgCompassExternal
[
index
]
?
1
:
2
)
...
...
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
View file @
2f7b754a
...
...
@@ -226,7 +226,8 @@ void APMSensorsComponentController::_mavCommandResult(int vehicleId, int compone
_startLogCalibration
();
uint8_t
compassBits
=
0
;
if
(
getParameterFact
(
FactSystem
::
defaultComponentId
,
QStringLiteral
(
"COMPASS_DEV_ID"
))
->
rawValue
().
toInt
()
>
0
)
{
if
(
getParameterFact
(
FactSystem
::
defaultComponentId
,
QStringLiteral
(
"COMPASS_DEV_ID"
))
->
rawValue
().
toInt
()
>
0
&&
getParameterFact
(
FactSystem
::
defaultComponentId
,
QStringLiteral
(
"COMPASS_USE"
))
->
rawValue
().
toBool
())
{
compassBits
|=
1
<<
0
;
qCDebug
(
APMSensorsComponentControllerLog
)
<<
"Performing onboard compass cal for compass 1"
;
}
else
{
...
...
@@ -234,7 +235,8 @@ void APMSensorsComponentController::_mavCommandResult(int vehicleId, int compone
_rgCompassCalSucceeded
[
0
]
=
true
;
_rgCompassCalFitness
[
0
]
=
0
;
}
if
(
getParameterFact
(
FactSystem
::
defaultComponentId
,
QStringLiteral
(
"COMPASS_DEV_ID2"
))
->
rawValue
().
toInt
()
>
0
)
{
if
(
getParameterFact
(
FactSystem
::
defaultComponentId
,
QStringLiteral
(
"COMPASS_DEV_ID2"
))
->
rawValue
().
toInt
()
>
0
&&
getParameterFact
(
FactSystem
::
defaultComponentId
,
QStringLiteral
(
"COMPASS_USE2"
))
->
rawValue
().
toBool
())
{
compassBits
|=
1
<<
1
;
qCDebug
(
APMSensorsComponentControllerLog
)
<<
"Performing onboard compass cal for compass 2"
;
}
else
{
...
...
@@ -242,7 +244,8 @@ void APMSensorsComponentController::_mavCommandResult(int vehicleId, int compone
_rgCompassCalSucceeded
[
1
]
=
true
;
_rgCompassCalFitness
[
1
]
=
0
;
}
if
(
getParameterFact
(
FactSystem
::
defaultComponentId
,
QStringLiteral
(
"COMPASS_DEV_ID3"
))
->
rawValue
().
toInt
()
>
0
)
{
if
(
getParameterFact
(
FactSystem
::
defaultComponentId
,
QStringLiteral
(
"COMPASS_DEV_ID3"
))
->
rawValue
().
toInt
()
>
0
&&
getParameterFact
(
FactSystem
::
defaultComponentId
,
QStringLiteral
(
"COMPASS_USE3"
))
->
rawValue
().
toBool
())
{
compassBits
|=
1
<<
2
;
qCDebug
(
APMSensorsComponentControllerLog
)
<<
"Performing onboard compass cal for compass 3"
;
}
else
{
...
...
src/Joystick/JoystickManager.cc
View file @
2f7b754a
...
...
@@ -73,7 +73,7 @@ void JoystickManager::_setActiveJoystickFromSettings(void)
// Get the latest joystick mapping
newMap
=
JoystickSDL
::
discover
(
_multiVehicleManager
);
#elif defined(__android__)
_name2Joystick
Map
=
JoystickAndroid
::
discover
(
_multiVehicleManager
);
new
Map
=
JoystickAndroid
::
discover
(
_multiVehicleManager
);
#endif
if
(
_activeJoystick
&&
!
newMap
.
contains
(
_activeJoystick
->
name
()))
{
...
...
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