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
c88b2837
Commit
c88b2837
authored
May 11, 2017
by
Jacob Walser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide FactGroup names
parent
a148e3e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
ArduSubFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
+1
-1
FirmwarePlugin.cc
src/FirmwarePlugin/FirmwarePlugin.cc
+2
-2
FirmwarePlugin.h
src/FirmwarePlugin/FirmwarePlugin.h
+2
-2
Vehicle.cc
src/Vehicle/Vehicle.cc
+6
-4
No files found.
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
View file @
c88b2837
...
...
@@ -101,7 +101,7 @@ ArduSubFirmwarePlugin::ArduSubFirmwarePlugin(void):
_remapParamNameIntialized
=
true
;
}
_
factGroups
.
append
(
&
_infoFactGroup
);
_
nameToFactGroupMap
.
insert
(
"APMSubInfo"
,
&
_infoFactGroup
);
}
int
ArduSubFirmwarePlugin
::
remapParamNameHigestMinorVersionNumber
(
int
majorVersionNumber
)
const
...
...
src/FirmwarePlugin/FirmwarePlugin.cc
View file @
c88b2837
...
...
@@ -419,8 +419,8 @@ const QVariantList& FirmwarePlugin::cameraList(const Vehicle* vehicle)
return
_cameraList
;
}
QList
<
FactGroup
*>
FirmwarePlugin
::
factGroups
(
void
)
{
return
_
factGroups
;
const
QMap
<
QString
,
FactGroup
*>&
FirmwarePlugin
::
factGroups
(
void
)
{
return
_
nameToFactGroupMap
;
}
bool
FirmwarePlugin
::
vehicleYawsToNextWaypointInMission
(
const
Vehicle
*
vehicle
)
const
...
...
src/FirmwarePlugin/FirmwarePlugin.h
View file @
c88b2837
...
...
@@ -273,7 +273,7 @@ public:
/// Returns a list of CameraMetaData objects for available cameras on the vehicle.
virtual
const
QVariantList
&
cameraList
(
const
Vehicle
*
vehicle
);
virtual
QList
<
FactGroup
*>
factGroups
(
void
);
virtual
const
QMap
<
QString
,
FactGroup
*>&
factGroups
(
void
);
/// @true: When flying a mission the vehicle is always facing towards the next waypoint
virtual
bool
vehicleYawsToNextWaypointInMission
(
const
Vehicle
*
vehicle
)
const
;
...
...
@@ -301,7 +301,7 @@ protected:
// Arms the vehicle with validation and retries
// @return: true - vehicle armed, false - vehicle failed to arm
bool
_armVehicleAndValidate
(
Vehicle
*
vehicle
);
Q
List
<
FactGroup
*>
_factGroups
;
Q
Map
<
QString
,
FactGroup
*>
_nameToFactGroupMap
;
// Sets the vehicle to the specified flight mode with validation and retries
// @return: true - vehicle in specified flight mode, false - flight mode change failed
...
...
src/Vehicle/Vehicle.cc
View file @
c88b2837
...
...
@@ -372,10 +372,12 @@ void Vehicle::_commonInit(void)
_addFactGroup
(
&
_vibrationFactGroup
,
_vibrationFactGroupName
);
_addFactGroup
(
&
_temperatureFactGroup
,
_temperatureFactGroupName
);
// Add firmware-specific fact group, if provided
QList
<
FactGroup
*>
fwFactGroups
=
_firmwarePlugin
->
factGroups
();
for
(
int
i
=
0
;
i
<
fwFactGroups
.
count
();
i
++
)
{
_addFactGroup
(
fwFactGroups
[
i
],
QString
(
"FWPlugin%1"
).
arg
(
i
));
// Add firmware-specific fact groups, if provided
QMap
<
QString
,
FactGroup
*>
fwFactGroups
=
_firmwarePlugin
->
factGroups
();
QMapIterator
<
QString
,
FactGroup
*>
i
(
fwFactGroups
);
while
(
i
.
hasNext
())
{
i
.
next
();
_addFactGroup
(
i
.
value
(),
i
.
key
());
}
_flightDistanceFact
.
setRawValue
(
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