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.
|
Integer |
getRpm()
Gets the expected RPM
|
Double |
getSpeed()
Gets the fan speed (duty cycle).
|
long |
getSpeedSetTime()
Gets the speed set time.
|
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 (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 Double getSpeed()
public Integer getRpm()
public long getSpeedSetTime()
public void setTemperature(double temp)
throws VacuumException
temp - The temperature to setVacuumExceptionpublic double getTemperature()
public void setGain(double gain)
throws VacuumException
gain - The gain to setVacuumExceptionpublic double getGain()
public void setTimeConstant(double time)
throws VacuumException
time - The time constant to setVacuumExceptionpublic double getTimeConstant()
public void startLoop(double duty)
throws VacuumException
duty - The initial duty cycle valueVacuumExceptionpublic void startLoop()
throws VacuumException
VacuumExceptionpublic void stopLoop()
throws VacuumException
VacuumExceptionpublic boolean isLoopActive()
public void reset()
throws VacuumException
VacuumExceptionCopyright © 2022 LSST. All rights reserved.