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
08c6bb98
Commit
08c6bb98
authored
Jul 22, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1732 from DonLakeFlyer/ParamReport
Report failed initial parameter load to user
parents
8b46d4e6
e1fe7ba0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
113 additions
and
57 deletions
+113
-57
ParameterLoader.cc
src/FactSystem/ParameterLoader.cc
+103
-50
ParameterLoader.h
src/FactSystem/ParameterLoader.h
+10
-7
No files found.
src/FactSystem/ParameterLoader.cc
View file @
08c6bb98
This diff is collapsed.
Click to expand it.
src/FactSystem/ParameterLoader.h
View file @
08c6bb98
...
...
@@ -120,6 +120,7 @@ private:
MAV_PARAM_TYPE
_factTypeToMavType
(
FactMetaData
::
ValueType_t
factType
);
FactMetaData
::
ValueType_t
_mavTypeToFactType
(
MAV_PARAM_TYPE
mavType
);
void
_saveToEEPROM
(
void
);
void
_checkInitialLoadComplete
(
void
);
AutoPilotPlugin
*
_autopilot
;
UASInterface
*
_uas
;
...
...
@@ -133,21 +134,23 @@ private:
/// Second mapping is group name, to Fact
QMap
<
int
,
QMap
<
QString
,
QStringList
>
>
_mapGroup2ParameterName
;
bool
_parametersReady
;
///< All params received from param mgr
bool
_parametersReady
;
///< true: full set of parameters correctly loaded
bool
_initialLoadComplete
;
///< true: Initial load of all parameters complete, whether succesful or not
int
_defaultComponentId
;
QString
_defaultComponentIdParam
;
QMap
<
int
,
int
>
_paramCountMap
;
///< Map of total known parameter count, keyed by component id
QMap
<
int
,
QList
<
int
>
>
_waitingReadParamIndexMap
;
///< Map of param indices waiting for initial first time read, keyed by component id
QMap
<
int
,
QStringList
>
_waitingReadParamNameMap
;
///< Map of param names we are waiting to hear a read response from, keyed by component id
QMap
<
int
,
QStringList
>
_waitingWriteParamNameMap
;
///< Map of param names we are waiting to hear a write response from, keyed by component id
static
const
int
_maxInitialLoadRetry
=
5
;
///< Maximum a retries on initial index based load
QMap
<
int
,
int
>
_paramCountMap
;
///< Key: Component id, Value: count of parameters in this component
QMap
<
int
,
QMap
<
int
,
int
>
>
_waitingReadParamIndexMap
;
///< Key: Component id, Value: Map { Key: parameter index still waiting for, Value: retry count }
QMap
<
int
,
QMap
<
QString
,
int
>
>
_waitingReadParamNameMap
;
///< Key: Component id, Value: Map { Key: parameter name still waiting for, Value: retry count }
QMap
<
int
,
QMap
<
QString
,
int
>
>
_waitingWriteParamNameMap
;
///< Key: Component id, Value: Map { Key: parameter name still waiting for, Value: retry count }
QMap
<
int
,
QList
<
int
>
>
_failedReadParamIndexMap
;
///< Key: Component id, Value: failed parameter index
int
_totalParamCount
;
///< Number of parameters across all components
QTimer
_waitingParamTimeoutTimer
;
bool
_fullRefresh
;
QMutex
_dataMutex
;
static
Fact
_defaultFact
;
///< Used to return default fact, when parameter not found
...
...
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