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
3e6a08b3
Unverified
Commit
3e6a08b3
authored
Oct 26, 2018
by
Don Gagne
Committed by
GitHub
Oct 26, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6952 from DonLakeFlyer/CompassAutoRot
ArduPilot: Compass auto rot support
parents
bbf7f098
801aa5d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
APMSafetyComponentSummary.qml
src/AutoPilotPlugins/APM/APMSafetyComponentSummary.qml
+1
-1
APMSensorsComponent.qml
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
+4
-1
FirmwareUpgradeController.cc
src/VehicleSetup/FirmwareUpgradeController.cc
+0
-2
No files found.
src/AutoPilotPlugins/APM/APMSafetyComponentSummary.qml
View file @
3e6a08b3
...
...
@@ -43,7 +43,7 @@ FactPanel {
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Throttle failsafe:
"
)
valueText
:
F
act
.
enumStringValue
valueText
:
f
act
.
enumStringValue
visible
:
controller
.
vehicle
.
multiRotor
property
Fact
fact
:
controller
.
getParameterFact
(
-
1
,
"
FS_THR_ENABLE
"
,
false
/* reportMissing */
)
...
...
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
View file @
3e6a08b3
...
...
@@ -79,6 +79,9 @@ SetupPage {
property
int
_orientationDialogCalType
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
/
2
property
bool
_compassAutoRotAvailable
:
controller
.
parameterExists
(
-
1
,
"
COMPASS_AUTO_ROT
"
)
property
Fact
_compassAutoRotFact
:
controller
.
getParameterFact
(
-
1
,
"
COMPASS_AUTO_ROT
"
,
false
/* reportMissing */
)
property
bool
_compassAutoRot
:
_compassAutoRotAvailable
?
_compassAutoRotFact
.
rawValue
==
2
:
false
function
showOrientationsDialog
(
calType
)
{
var
dialogTitle
...
...
@@ -346,7 +349,7 @@ SetupPage {
}
Column
{
visible
:
sensorParams
.
rgCompassExternal
[
index
]
&&
sensorParams
.
rgCompassRotParamAvailable
[
index
]
visible
:
!
_compassAutoRot
&&
sensorParams
.
rgCompassExternal
[
index
]
&&
sensorParams
.
rgCompassRotParamAvailable
[
index
]
QGCLabel
{
text
:
qsTr
(
"
Orientation:
"
)
}
...
...
src/VehicleSetup/FirmwareUpgradeController.cc
View file @
3e6a08b3
...
...
@@ -371,7 +371,6 @@ void FirmwareUpgradeController::_initFirmwareHash()
QString
vehicleTypeDir
=
apmMapVehicleTypeToDir
[
vehicleType
];
QString
px4Dir
=
apmMapVehicleTypeToPX4Dir
[
vehicleType
];
QString
filename
=
apmMapVehicleTypeToFilename
[
vehicleType
];
qDebug
()
<<
firmwareTypeDir
<<
vehicleTypeDir
<<
px4Dir
<<
filename
;
_rgPX4FMUV5Firmware
.
insert
(
FirmwareIdentifier
(
AutoPilotStackAPM
,
firmwareType
,
vehicleType
),
apmUrl
.
arg
(
vehicleTypeDir
).
arg
(
firmwareTypeDir
).
arg
(
px4Dir
).
arg
(
filename
).
arg
(
"5"
));
_rgPX4FMUV4Firmware
.
insert
(
FirmwareIdentifier
(
AutoPilotStackAPM
,
firmwareType
,
vehicleType
),
apmUrl
.
arg
(
vehicleTypeDir
).
arg
(
firmwareTypeDir
).
arg
(
px4Dir
).
arg
(
filename
).
arg
(
"4"
));
_rgPX4FMUV3Firmware
.
insert
(
FirmwareIdentifier
(
AutoPilotStackAPM
,
firmwareType
,
vehicleType
),
apmUrl
.
arg
(
vehicleTypeDir
).
arg
(
firmwareTypeDir
).
arg
(
px4Dir
).
arg
(
filename
).
arg
(
"3"
));
...
...
@@ -388,7 +387,6 @@ void FirmwareUpgradeController::_initFirmwareHash()
QString
vehicleTypeDir
=
apmChibiOSMapVehicleTypeToDir
[
vehicleType
];
QString
fmuDir
=
apmChibiOSMapVehicleTypeToFmuDir
[
vehicleType
];
QString
filename
=
apmChibiOSMapVehicleTypeToFilename
[
vehicleType
];
qDebug
()
<<
firmwareTypeDir
<<
vehicleTypeDir
<<
fmuDir
<<
filename
;
_rgPX4FMUV5Firmware
.
insert
(
FirmwareIdentifier
(
AutoPilotStackAPM
,
firmwareType
,
vehicleType
),
apmChibiOSUrl
.
arg
(
vehicleTypeDir
).
arg
(
firmwareTypeDir
).
arg
(
"5"
).
arg
(
fmuDir
).
arg
(
filename
));
_rgPX4FMUV4Firmware
.
insert
(
FirmwareIdentifier
(
AutoPilotStackAPM
,
firmwareType
,
vehicleType
),
apmChibiOSUrl
.
arg
(
vehicleTypeDir
).
arg
(
firmwareTypeDir
).
arg
(
"4"
).
arg
(
fmuDir
).
arg
(
filename
));
_rgPX4FMUV3Firmware
.
insert
(
FirmwareIdentifier
(
AutoPilotStackAPM
,
firmwareType
,
vehicleType
),
apmChibiOSUrl
.
arg
(
vehicleTypeDir
).
arg
(
firmwareTypeDir
).
arg
(
"3"
).
arg
(
fmuDir
).
arg
(
filename
));
...
...
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