application: minor, fix lid names
This commit is contained in:
parent
d9229026e5
commit
b071eb6737
|
@ -68,7 +68,7 @@ static volatile bool rtc_internal_second_flag = false; /**< set when a second pa
|
|||
#define BED_PIN_LK3 PC15 /**< pin connected to link 3 */
|
||||
#define BED_PIN_LK4 PB1 /**< pin connected to link 4 */
|
||||
|
||||
#define LID_TEC_CHANNEL 0 /**< PA0/ADC12_CH1 is connected to the 12 kOhm thermistor in the lid heater */
|
||||
#define LID_TEC_CHANNEL 0 /**< PA0/ADC12_CH0 is connected to the 12 kOhm thermistor in the lid heater */
|
||||
#define LID_HEATER_PIN PA10 /**< pin to optocoupler cathode controlling triac to lid heater */
|
||||
#define LID_HEATER_TIMER 1 /**< timer connected to lid heater pin */
|
||||
#define LID_HEATER_CHANNEL 3 /**< timer channel connected to lid heater pin */
|
||||
|
@ -115,7 +115,7 @@ const uint8_t channels[] = {ADC_CHANNEL17, ADC_CHANNEL(LID_TEC_CHANNEL)}; /**< v
|
|||
static bool ds18b20_present = false; /**< if DS18B20 temperature sensor is present */
|
||||
|
||||
/** target temperature to be reached by the lid */
|
||||
static double lid_target = NAN;
|
||||
static float lid_target = NAN;
|
||||
/** target temperature to be reached by the bed */
|
||||
static uint16_t bed_target = 0;
|
||||
|
||||
|
@ -231,7 +231,7 @@ static void lid_power(uint8_t percent)
|
|||
}
|
||||
}
|
||||
|
||||
/** run PID control for lib temperature */
|
||||
/** run PID control for lid temperature */
|
||||
static void lid_pid(void)
|
||||
{
|
||||
// I tried Ziegler–Nichols method, but it overshoots and oscillates far too much (even with the no overshoot rule)
|
||||
|
|
Loading…
Reference in New Issue