Instances of DtDesignatorEncoder are used to take state information from a DtDesignatorRepository and place it into a designator PDU.
More...
Detailed Description
Instances of DtDesignatorEncoder are used to take state information from a DtDesignatorRepository and place it into a designator PDU.
Constructor & Destructor Documentation
| DtDesignatorEncoder::DtDesignatorEncoder |
( |
double |
_relPosThreshold = 1.0, |
|
|
double |
_absPosThreshold = 1.0, |
|
|
double |
_accelThreshold = 0.2 |
|
) |
| |
| virtual DtDesignatorEncoder::~DtDesignatorEncoder |
( |
| ) |
|
|
virtual |
Member Function Documentation
| double DtDesignatorEncoder::absPosThreshold |
( |
| ) |
const |
|
inlinevirtual |
Set/Query the value of the "Absolute Position" Update Threshold.
References myAbsPosThreshold.
| double DtDesignatorEncoder::accelThreshold |
( |
| ) |
const |
|
inlinevirtual |
Set/Query the value of the "Acceleration" Update Threshold.
References myAccelThreshold.
| double DtDesignatorEncoder::relPosThreshold |
( |
| ) |
const |
|
inlinevirtual |
Set/Query the value of the "Relative Position" Update Threshold.
References myRelPosThreshold.
Determine if a state message needs to be sent.
| void DtDesignatorEncoder::setAbsPosThreshold |
( |
double |
val | ) |
|
|
inlinevirtual |
Set/Query the value of the "Absolute Position" Update Threshold.
References myAbsPosThreshold.
| void DtDesignatorEncoder::setAccelThreshold |
( |
double |
val | ) |
|
|
inlinevirtual |
Set/Query the value of the "Acceleration" Update Threshold.
References myAccelThreshold.
| void DtDesignatorEncoder::setRelPosThreshold |
( |
double |
val | ) |
|
|
inlinevirtual |
Set/Query the value of the "Relative Position" Update Threshold.
References myRelPosThreshold.
Constructs a PDU from the state repository.
stateMsg determines whether a Designator PDU needs to be sent and constructs one of it does.
- Returns
- PDU if send is needed, and NULL if not
Member Data Documentation
| double DtDesignatorEncoder::myAbsPosThreshold |
|
protected |
| double DtDesignatorEncoder::myAccelThreshold |
|
protected |
| double DtDesignatorEncoder::myRelPosThreshold |
|
protected |
The documentation for this class was generated from the following file: