diff --git a/SRT/CDB/alma/DataBlock/PyCalmux/Mapping/Mapping.xml b/SRT/CDB/alma/DataBlock/PyCalmux/Mapping/Mapping.xml index 96f1386831e09a6f0a254424d58c9ef5f9bc6400..f083165cbd7761897dcfee5b68578d018c33a76a 100755 --- a/SRT/CDB/alma/DataBlock/PyCalmux/Mapping/Mapping.xml +++ b/SRT/CDB/alma/DataBlock/PyCalmux/Mapping/Mapping.xml @@ -6,5 +6,6 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> DBBC60 +DFB70 diff --git a/SRT/CDB/alma/Procedures/StationProcedures/StationProcedures.xml b/SRT/CDB/alma/Procedures/StationProcedures/StationProcedures.xml index ef34edabfe6aa2e2f98d1d1510d057648d9ab740..e93c54bcc65d6d679f0bd32dd9a9ac110a16d3ba 100644 --- a/SRT/CDB/alma/Procedures/StationProcedures/StationProcedures.xml +++ b/SRT/CDB/alma/Procedures/StationProcedures/StationProcedures.xml @@ -145,6 +145,7 @@ wait=1 antennaPark logMessage=Telescope is now parked + project=Maintenance diff --git a/SRT/Configuration/CDB/alma/DataBlock/PyCalmux/Mapping/Mapping.xml b/SRT/Configuration/CDB/alma/DataBlock/PyCalmux/Mapping/Mapping.xml index 091831a26a432fad08ac5d4d4e0ad0ecc7de3c86..f083165cbd7761897dcfee5b68578d018c33a76a 100755 --- a/SRT/Configuration/CDB/alma/DataBlock/PyCalmux/Mapping/Mapping.xml +++ b/SRT/Configuration/CDB/alma/DataBlock/PyCalmux/Mapping/Mapping.xml @@ -6,6 +6,6 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> DBBC60 -DFB80 +DFB70 diff --git a/SRT/Configuration/CDB/alma/Procedures/StationProcedures/StationProcedures.xml b/SRT/Configuration/CDB/alma/Procedures/StationProcedures/StationProcedures.xml index ef34edabfe6aa2e2f98d1d1510d057648d9ab740..e93c54bcc65d6d679f0bd32dd9a9ac110a16d3ba 100644 --- a/SRT/Configuration/CDB/alma/Procedures/StationProcedures/StationProcedures.xml +++ b/SRT/Configuration/CDB/alma/Procedures/StationProcedures/StationProcedures.xml @@ -145,6 +145,7 @@ wait=1 antennaPark logMessage=Telescope is now parked + project=Maintenance diff --git a/SRT/Servers/SRTMinorServo/src/SRTMinorServoBossCore.cpp b/SRT/Servers/SRTMinorServo/src/SRTMinorServoBossCore.cpp index 3e8120561a3612c68b867e17614ac00d8f8b72e2..7c50b8ccae5ab97a78cfb86d87f53b02920ba13d 100644 --- a/SRT/Servers/SRTMinorServo/src/SRTMinorServoBossCore.cpp +++ b/SRT/Servers/SRTMinorServo/src/SRTMinorServoBossCore.cpp @@ -162,6 +162,15 @@ void SRTMinorServoBossCore::setup(std::string commanded_setup) { AUTO_TRACE("SRTMinorServoBossCore::setup()"); + if(m_error_code.load() != ERROR_NO_ERROR) + { + _EXCPT(ManagementErrors::ConfigurationErrorExImpl, ex, "SRTMinorServoBossCore::setup()"); + ex.setSubsystem("MinorServo"); + ex.setReason("The system is in error state. Reset the errors first with the 'servoReset' command."); + ex.log(LM_DEBUG); + throw ex.getConfigurationErrorEx(); + } + try { checkLineStatus(); @@ -283,6 +292,15 @@ void SRTMinorServoBossCore::park() { AUTO_TRACE("SRTMinorServoBossCore::park()"); + if(m_error_code.load() != ERROR_NO_ERROR) + { + _EXCPT(ManagementErrors::ParkingErrorExImpl, ex, "SRTMinorServoBossCore::park()"); + ex.setSubsystem("MinorServo"); + ex.setReason("The system is in error state. Reset the errors first with the 'servoReset' command."); + ex.log(LM_DEBUG); + throw ex.getParkingErrorEx(); + } + try { checkLineStatus(); diff --git a/SRT/Servers/SRTMinorServo/src/SRTMinorServoSetupThread.cpp b/SRT/Servers/SRTMinorServo/src/SRTMinorServoSetupThread.cpp index c48f98d14c6882aad45d236a2a5ed5646bc4cd06..d782a86cb6cf867155dcd06a096caeb157af1c85 100644 --- a/SRT/Servers/SRTMinorServo/src/SRTMinorServoSetupThread.cpp +++ b/SRT/Servers/SRTMinorServo/src/SRTMinorServoSetupThread.cpp @@ -66,7 +66,7 @@ void SRTMinorServoSetupThread::runLoop() if(IRA::CIRATools::getUNIXEpoch() - m_start_time >= SETUP_TIMEOUT) { - ACS_LOG(LM_FULL_INFO, "SRTMinorServoSetupThread::runLoop()", (LM_CRITICAL, "Timeout while performing a setup operation.")); + ACS_LOG(LM_FULL_INFO, "SRTMinorServoSetupThread::runLoop()", (LM_CRITICAL, std::string("Timeout while configuring the system. Stopped at status " + std::to_string(m_status)).c_str())); m_core.setError(ERROR_CONFIG_ERROR); this->setStopped(); return;