Reworking raw adc, handle temp done
Pre seed adc values Pinecil port Update PIDThread.cpp TRGO is more stable for timing (buffered)?
This commit is contained in:
committed by
Ben V. Brown
parent
fc47c71ec3
commit
af0adb0708
@@ -700,7 +700,7 @@ void showDebugMenu(void) {
|
||||
break;
|
||||
case 8:
|
||||
// Handle Temp
|
||||
OLED::printNumber(getHandleTemperature(), 3, FontStyle::SMALL);
|
||||
OLED::printNumber(getHandleTemperature(0), 6, FontStyle::SMALL);
|
||||
break;
|
||||
case 9:
|
||||
// Voltage input
|
||||
|
||||
@@ -37,6 +37,11 @@ void startPIDTask(void const *argument __unused) {
|
||||
uint32_t PIDTempTarget = 0;
|
||||
uint16_t tipTempCRunawayTemp = 0;
|
||||
TickType_t runawaylastChangeTime = 0;
|
||||
// Pre-seed the adc filters
|
||||
for (int i = 0; i < 64; i++) {
|
||||
vTaskDelay(2);
|
||||
TipThermoModel::getTipInC(true);
|
||||
}
|
||||
#ifdef SLEW_LIMIT
|
||||
int32_t x10WattsOutLast = 0;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user