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
fb13763f
Commit
fb13763f
authored
Dec 28, 2018
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
e48bf87f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
APMFirmwarePlugin.h
src/FirmwarePlugin/APM/APMFirmwarePlugin.h
+1
-0
FirmwarePlugin.cc
src/FirmwarePlugin/FirmwarePlugin.cc
+5
-0
FirmwarePlugin.h
src/FirmwarePlugin/FirmwarePlugin.h
+3
-0
PX4FirmwarePlugin.h
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h
+1
-0
No files found.
src/FirmwarePlugin/APM/APMFirmwarePlugin.h
View file @
fb13763f
...
...
@@ -84,6 +84,7 @@ public:
QString
flightMode
(
uint8_t
base_mode
,
uint32_t
custom_mode
)
const
override
;
bool
setFlightMode
(
const
QString
&
flightMode
,
uint8_t
*
base_mode
,
uint32_t
*
custom_mode
)
override
;
bool
isGuidedMode
(
const
Vehicle
*
vehicle
)
const
override
;
QString
gotoFlightMode
(
void
)
const
override
{
return
QStringLiteral
(
"Guided"
);
}
QString
rtlFlightMode
(
void
)
const
override
{
return
QString
(
"RTL"
);
}
QString
missionFlightMode
(
void
)
const
override
{
return
QString
(
"Auto"
);
}
void
pauseVehicle
(
Vehicle
*
vehicle
)
override
;
...
...
src/FirmwarePlugin/FirmwarePlugin.cc
View file @
fb13763f
...
...
@@ -757,3 +757,8 @@ int FirmwarePlugin::versionCompare(Vehicle* vehicle, QString& compare)
int
patch
=
versionNumbers
[
2
].
toInt
();
return
versionCompare
(
vehicle
,
major
,
minor
,
patch
);
}
QString
FirmwarePlugin
::
gotoFlightMode
(
void
)
const
{
return
QString
();
}
src/FirmwarePlugin/FirmwarePlugin.h
View file @
fb13763f
...
...
@@ -114,6 +114,9 @@ public:
/// Returns whether the vehicle is in guided mode or not.
virtual
bool
isGuidedMode
(
const
Vehicle
*
vehicle
)
const
;
/// Returns the flight mode which the vehicle will be in if it is performing a goto location
virtual
QString
gotoFlightMode
(
void
)
const
;
/// Set guided flight mode
virtual
void
setGuidedMode
(
Vehicle
*
vehicle
,
bool
guidedMode
);
...
...
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.h
View file @
fb13763f
...
...
@@ -42,6 +42,7 @@ public:
QString
rtlFlightMode
(
void
)
const
override
{
return
_rtlFlightMode
;
}
QString
landFlightMode
(
void
)
const
override
{
return
_landingFlightMode
;
}
QString
takeControlFlightMode
(
void
)
const
override
{
return
_manualFlightMode
;
}
QString
gotoFlightMode
(
void
)
const
override
{
return
_holdFlightMode
;
}
void
pauseVehicle
(
Vehicle
*
vehicle
)
override
;
void
guidedModeRTL
(
Vehicle
*
vehicle
)
override
;
void
guidedModeLand
(
Vehicle
*
vehicle
)
override
;
...
...
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