Initialize some parameters to avoid errors reading them

This commit is contained in:
Mark Rivers
2020-01-28 16:32:56 -06:00
parent 91e4eb0e91
commit 5642bb1089
+5
View File
@@ -60,6 +60,11 @@ asynMotorAxis::asynMotorAxis(class asynMotorController *pC, int axisNo)
// Create the asynUser, connect to this axis
pasynUser_ = pasynManager->createAsynUser(NULL, NULL);
pasynManager->connectDevice(pasynUser_, pC->portName, axisNo);
// Initialize some parameters
setIntegerParam(pC_->motorPowerAutoOnOff_, 0);
setDoubleParam(pC_->motorPowerOffDelay_, 0.);
setDoubleParam(pC_->motorPowerOnDelay_, 0.);
}
asynMotorAxis::~asynMotorAxis()