146 */ |
146 */ |
147 typedef enum { |
147 typedef enum { |
148 SSR2_OFF = 0, ///< SSR2 not used. |
148 SSR2_OFF = 0, ///< SSR2 not used. |
149 SSR2_HLT_SHARE, ///< SSR2 for HLT shared with MLT |
149 SSR2_HLT_SHARE, ///< SSR2 for HLT shared with MLT |
150 SSR2_HLT_IND, ///< SSR2 for HLT independend. |
150 SSR2_HLT_IND, ///< SSR2 for HLT independend. |
151 SSR2_ON_IDLE, ///< SSR2 on when NLT is idle. |
151 SSR2_ON_IDLE, ///< SSR2 on when MLT is idle. |
152 } SSR2_TYPE; |
152 } SSR2_TYPE; |
153 |
153 |
154 |
154 |
155 |
155 |
156 /** |
156 /** |
190 * write a new configuration file with sane defaults. |
190 * write a new configuration file with sane defaults. |
191 */ |
191 */ |
192 void read_config(void); |
192 void read_config(void); |
193 |
193 |
194 |
194 |
195 #define EQUIPMENT_VERSION 2 ///< Equipment file version |
195 #define EQUIPMENT_VERSION 3 ///< Equipment file version |
196 |
196 |
197 /** |
197 /** |
198 * @brief Equipment configuration. File /spiffs/equipments.conf |
198 * @brief Equipment configuration. File /spiffs/equipments.conf |
199 */ |
199 */ |
200 struct hdrEquipment { |
200 struct hdrEquipment { |
222 double PID_kP; ///< PID P setting. |
222 double PID_kP; ///< PID P setting. |
223 double PID_kI; ///< PID I setting. |
223 double PID_kI; ///< PID I setting. |
224 double PID_kD; ///< PID D setting. |
224 double PID_kD; ///< PID D setting. |
225 bool xPID_POn; |
225 bool xPID_POn; |
226 int SampleTime; ///< PID sample time in seconds. |
226 int SampleTime; ///< PID sample time in seconds. |
|
227 bool Hendi; ///< HendiControl in use. |
|
228 int RampPower; ///< The power percentage to ramp to boil. |
|
229 int Max_watt; ///< MLT plus HLT peak, shut off HLT if higher. |
227 } equipment; ///< Equipment record. |
230 } equipment; ///< Equipment record. |
228 |
231 |
229 /** |
232 /** |
230 * @brief Append equipments record to disk. |
233 * @brief Append equipments record to disk. |
231 */ |
234 */ |