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
d5ff9e46
Commit
d5ff9e46
authored
Jul 03, 2017
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose capabilities know for future use
parent
0a22457d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
Vehicle.cc
src/Vehicle/Vehicle.cc
+1
-0
Vehicle.h
src/Vehicle/Vehicle.h
+4
-0
No files found.
src/Vehicle/Vehicle.cc
View file @
d5ff9e46
...
...
@@ -716,6 +716,7 @@ void Vehicle::_setCapabilities(uint64_t capabilityBits)
_supportsMissionItemInt
=
true
;
}
_vehicleCapabilitiesKnown
=
true
;
emit
capabilitiesKnownChanged
(
true
);
qCDebug
(
VehicleLog
)
<<
QString
(
"Vehicle %1 MISSION_ITEM_INT"
).
arg
(
_supportsMissionItemInt
?
QStringLiteral
(
"supports"
)
:
QStringLiteral
(
"does not support"
));
}
...
...
src/Vehicle/Vehicle.h
View file @
d5ff9e46
...
...
@@ -673,6 +673,7 @@ public:
const
QVariantList
&
toolBarIndicators
();
const
QVariantList
&
cameraList
(
void
)
const
;
bool
capabilitiesKnown
(
void
)
const
{
return
_vehicleCapabilitiesKnown
;
}
bool
supportsMissionItemInt
(
void
)
const
{
return
_supportsMissionItemInt
;
}
/// @true: When flying a mission the vehicle is always facing towards the next waypoint
...
...
@@ -682,6 +683,8 @@ public:
/// @return: true: initial request is complete, false: initial request is still in progress;
bool
initialPlanRequestComplete
(
void
)
const
{
return
_initialPlanRequestComplete
;
}
void
forceInitialPlanRequestComplete
(
void
)
{
_initialPlanRequestComplete
=
true
;
}
void
_setFlying
(
bool
flying
);
void
_setLanding
(
bool
landing
);
void
_setHomePosition
(
QGeoCoordinate
&
homeCoord
);
...
...
@@ -712,6 +715,7 @@ signals:
void
defaultHoverSpeedChanged
(
double
hoverSpeed
);
void
firmwareTypeChanged
(
void
);
void
vehicleTypeChanged
(
void
);
void
capabilitiesKnownChanged
(
bool
capabilitiesKnown
);
void
messagesReceivedChanged
();
void
messagesSentChanged
();
...
...
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