Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F25856874
SensorSlotOfAgent.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Size
937 B
Referenced Files
None
Subscribers
None
SensorSlotOfAgent.h
View Options
#ifndef SENSORSLOT_HEADERFILE
#define SENSORSLOT_HEADERFILE
#include
"SlotOfAgent.h"
//TODO: set name of slot as the name of the sensor is (+ "slot");
class
SensorSlotOfAgent
:
public
SlotOfAgent
{
private
:
float
sensorValue
;
bool
flagSensorValueIsSet
;
bool
flagSensorValueHasChanged
;
//SHORTCUT/WORKAUROUND -> TODO: make this better!
float
lastSensorValue
;
bool
flagLastSensorValueIsSet
;
unsigned
int
valueSetCounter
;
float
tempHistory
[
5
];
unsigned
int
historyCounter
=
0
;
public
:
SensorSlotOfAgent
();
void
set_sensorValue
(
float
sensorValue
);
bool
get_sensorValue
(
float
*
sensorValue
);
bool
getPreviousSensorValue
(
float
*
lastSensorValue
);
bool
get_flagSensorValueIsSet
();
bool
get_flagSensorValueHasChanged
();
//SHORTCUT/WORKAUROUND -> TODO: make this better!
void
increaseValueSetCounter
();
void
resetValueSetCounter
();
unsigned
int
getValueSetCounter
();
void
resetSlot
();
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Aug 29, 2:37 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
371245
Default Alt Text
SensorSlotOfAgent.h (937 B)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment