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
e1f095ed
Commit
e1f095ed
authored
May 26, 2015
by
Hugo Serrat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added MAV_TYPE for vtol tilt-rotor
parent
d5a21e16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
SensorsComponent.cc
src/AutoPilotPlugins/PX4/SensorsComponent.cc
+4
-2
SensorsComponentController.cc
src/AutoPilotPlugins/PX4/SensorsComponentController.cc
+2
-1
No files found.
src/AutoPilotPlugins/PX4/SensorsComponent.cc
View file @
e1f095ed
...
...
@@ -89,7 +89,8 @@ QStringList SensorsComponent::setupCompleteChangedTriggerList(void) const
triggers
<<
"CAL_MAG0_ID"
<<
"CAL_GYRO0_ID"
<<
"CAL_ACC0_ID"
;
if
(
_uas
->
getSystemType
()
==
MAV_TYPE_FIXED_WING
||
_uas
->
getSystemType
()
==
MAV_TYPE_VTOL_DUOROTOR
||
_uas
->
getSystemType
()
==
MAV_TYPE_VTOL_QUADROTOR
)
{
_uas
->
getSystemType
()
==
MAV_TYPE_VTOL_QUADROTOR
||
_uas
->
getSystemType
()
==
MAV_TYPE_VTOL_TILTROTOR
)
{
triggers
<<
"SENS_DPRES_OFF"
;
}
...
...
@@ -117,7 +118,8 @@ QUrl SensorsComponent::summaryQmlSource(void) const
qDebug
()
<<
_uas
->
getSystemType
();
if
(
_uas
->
getSystemType
()
==
MAV_TYPE_FIXED_WING
||
_uas
->
getSystemType
()
==
MAV_TYPE_VTOL_DUOROTOR
||
_uas
->
getSystemType
()
==
MAV_TYPE_VTOL_QUADROTOR
)
{
_uas
->
getSystemType
()
==
MAV_TYPE_VTOL_QUADROTOR
||
_uas
->
getSystemType
()
==
MAV_TYPE_VTOL_TILTROTOR
)
{
summaryQml
=
"qrc:/qml/SensorsComponentSummaryFixedWing.qml"
;
}
else
{
summaryQml
=
"qrc:/qml/SensorsComponentSummary.qml"
;
...
...
src/AutoPilotPlugins/PX4/SensorsComponentController.cc
View file @
e1f095ed
...
...
@@ -431,7 +431,8 @@ bool SensorsComponentController::fixedWing(void)
Q_ASSERT
(
uas
);
return
uas
->
getSystemType
()
==
MAV_TYPE_FIXED_WING
||
uas
->
getSystemType
()
==
MAV_TYPE_VTOL_DUOROTOR
||
uas
->
getSystemType
()
==
MAV_TYPE_VTOL_QUADROTOR
;
uas
->
getSystemType
()
==
MAV_TYPE_VTOL_QUADROTOR
||
uas
->
getSystemType
()
==
MAV_TYPE_VTOL_TILTROTOR
;
}
void
SensorsComponentController
::
_updateAndEmitShowOrientationCalArea
(
bool
show
)
...
...
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