public class Commands
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle
| Constructor and Description |
|---|
Commands() |
| Modifier and Type | Method and Description |
|---|---|
void |
calibrate() |
void |
changeAxisEnable(org.lsst.ccs.subsystem.motorplatform.bus.ChangeAxisEnable req) |
void |
changeBrakeState(String axisName,
boolean brakeEngaged) |
void |
clearAllFaults(org.lsst.ccs.subsystem.motorplatform.bus.ClearAllFaults req) |
void |
clearAxisFaults(org.lsst.ccs.subsystem.motorplatform.bus.ClearAxisFaults req) |
void |
clearFaults() |
void |
closeShutter() |
void |
disable(String axisName) |
void |
disableAllAxes(org.lsst.ccs.subsystem.motorplatform.bus.DisableAllAxes req) |
void |
enable(String axisName) |
void |
enableAllAxes(org.lsst.ccs.subsystem.motorplatform.bus.EnableAllAxes req) |
void |
gotoCenter() |
void |
gotoProd() |
void |
home(String axisName) |
void |
homeAxis(org.lsst.ccs.subsystem.motorplatform.bus.HomeAxis req) |
void |
init()
Register the raised Alerts in the init method
|
void |
moveAxisAbsolute(org.lsst.ccs.subsystem.motorplatform.bus.MoveAxisAbsolute req) |
void |
moveAxisRelative(org.lsst.ccs.subsystem.motorplatform.bus.MoveAxisRelative req) |
void |
moveBy(String axisName,
double positionChangeMm,
double seconds) |
void |
moveTo(String axisName,
double newPositionMm,
double speedMmSec) |
void |
openShutter() |
void |
postInit()
Sets the Agent property marking this as a motorplatform subsystem.
|
void |
resync() |
void |
sendAxisStatus(org.lsst.ccs.subsystem.motorplatform.bus.SendAxisStatus cmd) |
void |
sendConfiguration(org.lsst.ccs.subsystem.motorplatform.bus.SendConfiguration cmd) |
void |
sendControllerStatus(org.lsst.ccs.subsystem.motorplatform.bus.SendControllerStatus cmd) |
String |
status(String axisName) |
void |
stopAll() |
void |
stopAllMotion(org.lsst.ccs.subsystem.motorplatform.bus.StopAllMotion req) |
void |
takeExposure(double exposureTime) |
void |
toggleSafetyCheck() |
String |
vetoTransitionToNormalMode()
Veto a transition to NORMAL mode if the shutter isn't in the Closed state in Prod.
|
getLogHandler, getNumberCommandThreads, ping, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthcreateHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCCSVersions, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getDistributionInfo, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, helper, initAgent, initLogBusHandler, isInEngineeringMode, populateComponentLookup, preInit, preStart, printComponentNodeTree, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, shutdownAgent, startAgentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void init()
init in interface org.lsst.ccs.framework.HasLifecyclepublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecyclepublic String vetoTransitionToNormalMode()
vetoTransitionToNormalMode in class org.lsst.ccs.Agent@Command(autoAck=false, level=0, type=ACTION, description="Try again to sync with the shutter controller.", timeout=30) public void resync() throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="Start a calibration.", timeout=30) public void calibrate() throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="Toggle the PLC safety check flag.", timeout=30) public void toggleSafetyCheck() throws InterruptedException
InterruptedException@Command(autoAck=false, level=0, type=ACTION, description="Take an exposure for a given number of seconds.", timeout=30) public void takeExposure(double exposureTime) throws InterruptedException
InterruptedException@Command(autoAck=false, level=0, type=ACTION, description="Open the shutter.", timeout=30) public void openShutter() throws InterruptedException
InterruptedException@Command(autoAck=false, level=0, type=ACTION, description="Close the shutter, aborting any exposure.", timeout=30) public void closeShutter() throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="Change the brake state on an axis.", timeout=30) public void changeBrakeState(String axisName, boolean brakeEngaged) throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="Center the blades (power-off prep).", timeout=30) public void gotoCenter() throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="Enter the Prod state.", timeout=30) public void gotoProd() throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Scripting) Start an axis homing.", timeout=30) public void homeAxis(org.lsst.ccs.subsystem.motorplatform.bus.HomeAxis req) throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Scripting) Start a move to absolute position.", timeout=30) public void moveAxisAbsolute(org.lsst.ccs.subsystem.motorplatform.bus.MoveAxisAbsolute req) throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Scripting) Start a position change.", timeout=30) public void moveAxisRelative(org.lsst.ccs.subsystem.motorplatform.bus.MoveAxisRelative req) throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Scripting) Clear faults on both axes.", timeout=30) public void clearAllFaults(org.lsst.ccs.subsystem.motorplatform.bus.ClearAllFaults req) throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Scripting) Enable/disable axis.", timeout=30) public void changeAxisEnable(org.lsst.ccs.subsystem.motorplatform.bus.ChangeAxisEnable req) throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Scripting) Clear faults for one axis.", timeout=30) public void clearAxisFaults(org.lsst.ccs.subsystem.motorplatform.bus.ClearAxisFaults req) throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Scripting) Enable both axes.", timeout=30) public void enableAllAxes(org.lsst.ccs.subsystem.motorplatform.bus.EnableAllAxes req) throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Scripting) Disable both axes.", timeout=30) public void disableAllAxes(org.lsst.ccs.subsystem.motorplatform.bus.DisableAllAxes req) throws InterruptedException
InterruptedException@Command(autoAck=false, level=0, type=ACTION, description="(Scripting) Emergency stop motion.", timeout=30) public void stopAllMotion(org.lsst.ccs.subsystem.motorplatform.bus.StopAllMotion req) throws InterruptedException
InterruptedException@Command(level=0, type=QUERY, description="(Scripting) Publish controller status ASAP.", timeout=30) public void sendControllerStatus(org.lsst.ccs.subsystem.motorplatform.bus.SendControllerStatus cmd)
@Command(level=0, type=QUERY, description="(Scripting) Publish controller configuration ASAP.", timeout=30) public void sendConfiguration(org.lsst.ccs.subsystem.motorplatform.bus.SendConfiguration cmd)
@Command(level=0, type=QUERY, description="(Scripting) Publish axis status ASAP.", timeout=30) public void sendAxisStatus(org.lsst.ccs.subsystem.motorplatform.bus.SendAxisStatus cmd)
@Command(autoAck=false, level=1, type=ACTION, description="(Console) Clear faults on both axes.", timeout=30) public void clearFaults() throws InterruptedException
InterruptedException@Command(autoAck=false, level=0, type=ACTION, description="(Console) Emergeny stop motion.", timeout=30) public void stopAll() throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Console) Enable an axis.", timeout=30) public void enable(String axisName) throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Console) Disable an axis.", timeout=30) public void disable(String axisName) throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Console) Start an axis homing.", timeout=30) public void home(String axisName) throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Console) Start a move to an absolute position.", timeout=30) public void moveTo(String axisName, double newPositionMm, double speedMmSec) throws InterruptedException
InterruptedException@Command(autoAck=false, level=1, type=ACTION, description="(Console) Start a position change.", timeout=30) public void moveBy(String axisName, double positionChangeMm, double seconds) throws InterruptedException
InterruptedExceptionCopyright © 2023 LSST. All rights reserved.