Added connection assertion and moved msgPrintControl to key

This commit is contained in:
2025-04-25 15:54:41 +02:00
parent c7936191d9
commit dd0610fd99
5 changed files with 72 additions and 21 deletions

View File

@@ -348,6 +348,16 @@ class epicsShareClass sinqAxis : public asynMotorAxis {
*/
asynStatus setMotorPosition(double motorPosition);
/**
* @brief Check if the axis is not connected and print a corresponding error
* message
*
* This method is meant to be used at the end of "interactive" function
* calls such as move, home, stop etc which can be manually triggered from
* the IOC shell or from the channel access protocol.
*/
asynStatus assertConnected();
protected:
// Internal variables used in the movement timeout watchdog
time_t expectedArrivalTime_;