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
e03bd3f4
Commit
e03bd3f4
authored
Nov 11, 2014
by
Julian Oes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UASControlWidget: add the option to select the OFFBOARD mode
parent
f61167ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
UASControlWidget.cc
src/ui/uas/UASControlWidget.cc
+4
-1
No files found.
src/ui/uas/UASControlWidget.cc
View file @
e03bd3f4
...
...
@@ -52,7 +52,7 @@ static struct full_mode_s modes_list_common[] = {
0
},
};
static
struct
full_mode_s
modes_list_px4
[
4
];
static
struct
full_mode_s
modes_list_px4
[
5
];
UASControlWidget
::
UASControlWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
),
uasID
(
-
1
),
...
...
@@ -88,6 +88,9 @@ void UASControlWidget::updateModesList()
modes_list_px4
[
3
].
baseMode
=
MAV_MODE_FLAG_CUSTOM_MODE_ENABLED
|
MAV_MODE_FLAG_AUTO_ENABLED
|
MAV_MODE_FLAG_STABILIZE_ENABLED
|
MAV_MODE_FLAG_GUIDED_ENABLED
;
px4_cm
.
main_mode
=
PX4_CUSTOM_MAIN_MODE_AUTO
;
modes_list_px4
[
3
].
customMode
=
px4_cm
.
data
;
modes_list_px4
[
4
].
baseMode
=
MAV_MODE_FLAG_CUSTOM_MODE_ENABLED
|
MAV_MODE_FLAG_AUTO_ENABLED
|
MAV_MODE_FLAG_STABILIZE_ENABLED
|
MAV_MODE_FLAG_GUIDED_ENABLED
;
px4_cm
.
main_mode
=
PX4_CUSTOM_MAIN_MODE_OFFBOARD
;
modes_list_px4
[
4
].
customMode
=
px4_cm
.
data
;
// Detect autopilot type
int
autopilot
=
0
;
...
...
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