public class FanPIControl extends Object implements org.lsst.ccs.framework.HasLifecycle
| Constructor and Description |
|---|
FanPIControl() |
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Sets up the fan speed control loop timer task.
|
double |
getGain()
Gets the gain.
|
double |
getTemperature()
Gets the target temperature.
|
double |
getTimeConstant()
Gets the time constant.
|
void |
init()
Initializes the parameters.
|
boolean |
isLoopActive()
Gets the control loop state.
|
void |
reset()
Resets the controller.
|
void |
setGain(double gain)
Sets the gain.
|
void |
setSpeed(double speed)
Sets the fan speed (or duty cycle).
|
void |
setTemperature(double temp)
Sets the target temperature.
|
void |
setTimeConstant(double time)
Sets the time constant.
|
void |
startLoop()
Starts the control loop.
|
void |
startLoop(double duty)
Starts the control loop.
|
void |
stopLoop()
Stops the control loop.
|
public void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void init()
init in interface org.lsst.ccs.framework.HasLifecyclepublic void setSpeed(double speed)
speed - The speed to setpublic void setTemperature(double temp)
throws UtilityException
temp - The temperature to setUtilityExceptionpublic double getTemperature()
public void setGain(double gain)
throws UtilityException
gain - The gain to setUtilityExceptionpublic double getGain()
public void setTimeConstant(double time)
throws UtilityException
time - The time constant to setUtilityExceptionpublic double getTimeConstant()
public void startLoop(double duty)
throws UtilityException
duty - The initial duty cycle valueUtilityExceptionpublic void startLoop()
throws UtilityException
UtilityExceptionpublic void stopLoop()
throws UtilityException
UtilityExceptionpublic boolean isLoopActive()
public void reset()
throws UtilityException
UtilityExceptionCopyright © 2019 LSST. All rights reserved.