
public class TrimHeaterControl extends Object implements org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
static int |
NUM_COLD_RTDS |
static int |
NUM_CRYO_RTDS |
| Constructor and Description |
|---|
TrimHeaterControl() |
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Starts the control loop iteration and temperature limit check tasks.
|
int |
getPowerChannel()
Gets the power channel,
|
PowerDevice |
getPowerDevice()
Gets the power device,
|
String |
getTempChannelNames() |
boolean |
isOverTemp()
Gets whether the temperature is over the limit.
|
void |
postInit()
Initializes the parameters.
|
void |
setOpState(TrimHeaterOpState state)
Sets the operation state.
|
void |
setPower(double value)
Sets the constant power value.
|
void |
setTemp(double value)
Sets the target temperature.
|
void |
setTempWeight(String cName,
double weight)
Sets a temperature weight.
|
void |
setTempWeights(Map<String,Double> weights)
Sets the temperature weights.
|
public static final int NUM_COLD_RTDS
public static final int NUM_CRYO_RTDS
public void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecycle@ConfigurationParameterChanger public void setTempWeights(Map<String,Double> weights)
weights - A map of channel names to weight factors@Command(type=QUERY, description="Get the list of temperature channel names") public String getTempChannelNames()
@Command(type=ACTION, description="Set a temperature weight") public void setTempWeight(@Argument(description="Channel name") String cName, @Argument(description="Channel weight") double weight) throws RefrigException
cName - The name of the temperature channelweight - The weight factor to setRefrigExceptionpublic PowerDevice getPowerDevice()
public int getPowerChannel()
public void setPower(double value)
value - The power value to setpublic void setTemp(double value)
value - The temperature to setpublic void setOpState(TrimHeaterOpState state)
state - The state to set (OFF, POWER or TEMP)public boolean isOverTemp()
Copyright © 2020 LSST. All rights reserved.