Added getters and setters for wasMoving and targetPosition

This commit is contained in:
2025-06-10 14:09:20 +02:00
parent c2eca33ce8
commit bdefc6090d
2 changed files with 40 additions and 0 deletions

View File

@@ -369,6 +369,36 @@ class epicsShareClass sinqAxis : public asynMotorAxis {
*/
sinqController *pController() { return pC_; };
/**
* @brief Returns true, if the axis was moving in the last poll cycle, and
* false otherwise.
*
* @return true
* @return false
*/
bool wasMoving();
/**
* @brief Override the wasMoving flag (normally, it is automatically updated
* during each poll).
*
*/
void setWasMoving(bool wasMoving);
/**
* @brief Read out the last received target position in engineering units.
*
* @return double
*/
double targetPosition();
/**
* @brief Override the targetPosition value (normally, it is automatically
* updated at every call of the move() method).
*
*/
void setTargetPosition(double targetPosition);
private:
std::unique_ptr<sinqAxisImpl> pSinqA_;
sinqController *pC_;