|
Critical Link MityCam SoC Firmware
1.0
Critical Link MityCam SoC Firmware
|
Go to the documentation of this file.
7 #include "libdaq/mcp4725.h"
8 #include "libdaq/gpio.h"
17 #define DEFAULT_P (0.78f)
18 #define DEFAULT_I (0.025f)
19 #define DEFAULT_D (0.0006f)
21 #define MAX_TEC_CURRENT (1500)
53 void getPID(
float &arP,
float &arI,
float &arD);
59 void setEnable(
bool abEnable,
int anIntervalMilliseconds = 1000);
97 static void timerExpired(
union sigval auSig);
107 void writeTECState();
109 enum teHeatCoolMode { eeCooling, eeHeating } ;
111 void setHeatCoolMode(teHeatCoolMode aeControlMode);
113 static const int gnTempChangePerMin = 5;
121 int mnMaxTECCurrentMA;
124 int mnHeatCheckCount;
128 float mnUpdateIntervalMilliseconds;
134 MityDSP::tcMCP4725 mcDac;
136 struct sigevent msSigevent;
138 struct itimerspec msTimerInterval;
143 teHeatCoolMode meControlMode;
144 MityDSP::tcGpio* mpHeatCoolGPIO;
void getPID(float &arP, float &arI, float &arD)
Definition: PIDControl.cpp:292
float getDutyCycle()
Definition: PIDControl.cpp:299
#define DEFAULT_P
Definition: PIDControl.h:17
Definition: PIDControl.h:27
tcPIDControl(int anBus, int anAddr, SocCamera::tcSensorBoard *apSensorBoard, int cool_heat_gpio, int break_gpio=-1)
Definition: PIDControl.cpp:27
bool getEnabled()
Definition: PIDControl.cpp:309
void setTarget(float anTempC)
Definition: PIDControl.cpp:155
virtual ~tcPIDControl()
Definition: PIDControl.cpp:73
bool initialize(int anMaxTECCurrentMA=1500)
Definition: PIDControl.cpp:77
void setEnable(bool abEnable, int anIntervalMilliseconds=1000)
Definition: PIDControl.cpp:127
Definition: CameraTypes.h:7
void setPID(float anP=DEFAULT_P, float anI=DEFAULT_I, float anD=DEFAULT_D)
Definition: PIDControl.cpp:113
float getTarget()
Definition: PIDControl.cpp:304
#define DEFAULT_I
Definition: PIDControl.h:18
Definition: SensorBoard.h:40
#define DEFAULT_D
Definition: PIDControl.h:19
float getDacVolts()
returns the current DAC voltage
Definition: PIDControl.cpp:356
void step()
Definition: PIDControl.cpp:161