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
f16514fb
Commit
f16514fb
authored
Feb 16, 2017
by
Danny Schrader
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed FirmwarePlugin message. Changed abortLanding() to abortLanding(double).
parent
8c2f662c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
17 deletions
+5
-17
FirmwarePlugin.cc
src/FirmwarePlugin/FirmwarePlugin.cc
+0
-7
FirmwarePlugin.h
src/FirmwarePlugin/FirmwarePlugin.h
+0
-3
FlightDisplayViewWidgets.qml
src/FlightDisplay/FlightDisplayViewWidgets.qml
+2
-2
Vehicle.cc
src/Vehicle/Vehicle.cc
+2
-4
Vehicle.h
src/Vehicle/Vehicle.h
+1
-1
No files found.
src/FirmwarePlugin/FirmwarePlugin.cc
View file @
f16514fb
...
...
@@ -16,7 +16,6 @@
static
FirmwarePluginFactoryRegister
*
_instance
=
NULL
;
const
char
*
guided_mode_not_supported_by_vehicle
=
"Guided mode not supported by Vehicle."
;
const
char
*
landing_aborted
=
"Landing aborted."
;
const
char
*
FirmwarePlugin
::
px4FollowMeFlightMode
=
"Follow Me"
;
...
...
@@ -232,12 +231,6 @@ void FirmwarePlugin::pauseVehicle(Vehicle* vehicle)
qgcApp
()
->
showMessage
(
guided_mode_not_supported_by_vehicle
);
}
void
FirmwarePlugin
::
abortLanding
(
Vehicle
*
vehicle
)
{
Q_UNUSED
(
vehicle
);
qgcApp
()
->
showMessage
(
landing_aborted
);
}
void
FirmwarePlugin
::
guidedModeRTL
(
Vehicle
*
vehicle
)
{
// Not supported by generic vehicle
...
...
src/FirmwarePlugin/FirmwarePlugin.h
View file @
f16514fb
...
...
@@ -105,9 +105,6 @@ public:
/// If not, vehicle will be left in Loiter.
virtual
void
pauseVehicle
(
Vehicle
*
vehicle
);
/// Command vehicle to abort landing
virtual
void
abortLanding
(
Vehicle
*
vehicle
);
/// Command vehicle to return to launch
virtual
void
guidedModeRTL
(
Vehicle
*
vehicle
);
...
...
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
f16514fb
...
...
@@ -240,7 +240,7 @@ Item {
//_activeVehicle.guidedModeOrbit(QGroundControl.flightMapPosition, 50.0)
break
;
case
confirmAbort
:
_activeVehicle
.
abortLanding
(
)
_activeVehicle
.
abortLanding
(
50
)
// hardcoded value for climbOutAltitude that is currently ignored
break
;
default
:
console
.
warn
(
qsTr
(
"
Internal error: unknown confirmActionCode
"
),
confirmActionCode
)
...
...
@@ -366,7 +366,7 @@ Item {
QGCButton
{
pointSize
:
_guidedModeBar
.
_fontPointSize
text
:
qsTr
(
"
Abort
"
)
visible
:
_activeVehicle
&&
_activeVehicle
.
flying
visible
:
_activeVehicle
&&
_activeVehicle
.
flying
&&
_activeVehicle
.
fixedWing
onClicked
:
_guidedModeBar
.
confirmAction
(
_guidedModeBar
.
confirmAbort
)
}
...
...
src/Vehicle/Vehicle.cc
View file @
f16514fb
...
...
@@ -1838,14 +1838,12 @@ void Vehicle::pauseVehicle(void)
_firmwarePlugin
->
pauseVehicle
(
this
);
}
void
Vehicle
::
abortLanding
(
void
)
void
Vehicle
::
abortLanding
(
double
climbOutAltitude
)
{
sendMavCommand
(
defaultComponentId
(),
MAV_CMD_DO_GO_AROUND
,
true
,
// show error if fails
50
);
// this is a dummy value that is currently ignored
_firmwarePlugin
->
abortLanding
(
this
);
climbOutAltitude
);
}
bool
Vehicle
::
guidedMode
(
void
)
const
...
...
src/Vehicle/Vehicle.h
View file @
f16514fb
...
...
@@ -356,7 +356,7 @@ public:
Q_INVOKABLE
void
emergencyStop
(
void
);
/// Command vehicle to abort landing
Q_INVOKABLE
void
abortLanding
(
void
);
Q_INVOKABLE
void
abortLanding
(
double
climbOutAltitude
);
/// Alter the current mission item on the vehicle
Q_INVOKABLE
void
setCurrentMissionSequence
(
int
seq
);
...
...
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