This commit is contained in:
parent
a3eaace4a5
commit
51629da4a0
@ -82,7 +82,7 @@ enum SetIds : uint32_t {
|
|||||||
STATUS_SET_ID = GET_RW_STATUS,
|
STATUS_SET_ID = GET_RW_STATUS,
|
||||||
LAST_RESET_ID = GET_LAST_RESET_STATUS,
|
LAST_RESET_ID = GET_LAST_RESET_STATUS,
|
||||||
TM_SET_ID = GET_TM,
|
TM_SET_ID = GET_TM,
|
||||||
RW_SPEED = 10,
|
SPEED_CMD_SET = 10,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const size_t SIZE_GET_RESET_STATUS = 5;
|
static const size_t SIZE_GET_RESET_STATUS = 5;
|
||||||
@ -204,13 +204,13 @@ class TmDataset : public StaticLocalDataSet<TM_SET_ENTRIES> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class RwSpeedActuationSet : StaticLocalDataSet<4> {
|
class RwSpeedActuationSet : StaticLocalDataSet<4> {
|
||||||
friend class ::RwHandler;
|
friend class RwHandler;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RwSpeedActuationSet(HasLocalDataPoolIF& owner)
|
RwSpeedActuationSet(HasLocalDataPoolIF& owner)
|
||||||
: StaticLocalDataSet(&owner, RwDefinitions::SetIds::RW_SPEED) {}
|
: StaticLocalDataSet(&owner, RwDefinitions::SetIds::SPEED_CMD_SET) {}
|
||||||
RwSpeedActuationSet(object_id_t objectId)
|
RwSpeedActuationSet(object_id_t objectId)
|
||||||
: StaticLocalDataSet(sid_t(objectId, RwDefinitions::SetIds::RW_SPEED)) {}
|
: StaticLocalDataSet(sid_t(objectId, RwDefinitions::SetIds::SPEED_CMD_SET)) {}
|
||||||
|
|
||||||
void setRwSpeed(int32_t rwSpeed_) {
|
void setRwSpeed(int32_t rwSpeed_) {
|
||||||
if (rwSpeed.value != rwSpeed_) {
|
if (rwSpeed.value != rwSpeed_) {
|
||||||
@ -221,7 +221,8 @@ class RwSpeedActuationSet : StaticLocalDataSet<4> {
|
|||||||
void getRwSpeed(int32_t& rwSpeed_) { rwSpeed_ = rwSpeed.value; }
|
void getRwSpeed(int32_t& rwSpeed_) { rwSpeed_ = rwSpeed.value; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
lp_var_t<int32_t> rwSpeed = lp_var_t<int32_t>(sid.objectId, RW_SPEED, this);
|
lp_var_t<int32_t> rwSpeed =
|
||||||
|
lp_var_t<int32_t>(sid.objectId, RwDefinitions::PoolIds::RW_SPEED, this);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace RwDefinitions
|
} // namespace RwDefinitions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user