Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vdcd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Virtual Devices
vdcd
Commits
0bc5a89a
Commit
0bc5a89a
authored
May 29, 2015
by
luz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SensorBehaviour: added default changes-only interval parameter for setHardwareSensorConfig
parent
9bc086f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
sensorbehaviour.cpp
src/behaviours/sensorbehaviour.cpp
+3
-1
sensorbehaviour.hpp
src/behaviours/sensorbehaviour.hpp
+1
-1
No files found.
src/behaviours/sensorbehaviour.cpp
View file @
0bc5a89a
...
...
@@ -39,7 +39,7 @@ SensorBehaviour::SensorBehaviour(Device &aDevice) :
}
void
SensorBehaviour
::
setHardwareSensorConfig
(
DsSensorType
aType
,
DsUsageHint
aUsage
,
double
aMin
,
double
aMax
,
double
aResolution
,
MLMicroSeconds
aUpdateInterval
,
MLMicroSeconds
aAliveSignInterval
)
void
SensorBehaviour
::
setHardwareSensorConfig
(
DsSensorType
aType
,
DsUsageHint
aUsage
,
double
aMin
,
double
aMax
,
double
aResolution
,
MLMicroSeconds
aUpdateInterval
,
MLMicroSeconds
aAliveSignInterval
,
MLMicroSeconds
aDefaultChangesOnlyInterval
)
{
sensorType
=
aType
;
sensorUsage
=
aUsage
;
...
...
@@ -48,6 +48,8 @@ void SensorBehaviour::setHardwareSensorConfig(DsSensorType aType, DsUsageHint aU
resolution
=
aResolution
;
updateInterval
=
aUpdateInterval
;
aliveSignInterval
=
aAliveSignInterval
;
// default only, devices once created will have this as a persistent setting
changesOnlyInterval
=
aDefaultChangesOnlyInterval
;
}
...
...
src/behaviours/sensorbehaviour.hpp
View file @
0bc5a89a
...
...
@@ -77,7 +77,7 @@ namespace p44 {
/// initialisation of hardware-specific constants for this sensor
/// @note this must be called once before the device gets added to the device container. Implementation might
/// also derive default values for settings from this information.
void
setHardwareSensorConfig
(
DsSensorType
aType
,
DsUsageHint
aUsage
,
double
aMin
,
double
aMax
,
double
aResolution
,
MLMicroSeconds
aUpdateInterval
,
MLMicroSeconds
aAliveSignInterval
);
void
setHardwareSensorConfig
(
DsSensorType
aType
,
DsUsageHint
aUsage
,
double
aMin
,
double
aMax
,
double
aResolution
,
MLMicroSeconds
aUpdateInterval
,
MLMicroSeconds
aAliveSignInterval
,
MLMicroSeconds
aDefaultChangesOnlyInterval
=
0
);
/// set group
virtual
void
setGroup
(
DsGroup
aGroup
)
{
sensorGroup
=
aGroup
;
};
...
...
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