diff options
author | Ben V. Brown <[email protected]> | 2023-10-21 08:21:08 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-21 08:21:08 +1100 |
commit | c308fe8cc2bd8e1e93e9441d7e8fc537a79a2259 (patch) | |
tree | 52e6e216317a7549d5216a834da42c27d17fe408 /source/Core/BSP/Miniware | |
parent | 9c7ad43a76bba68c3b9384fa3514dab8504850b3 (diff) | |
download | IronOS-2.22-rc3.tar.gz IronOS-2.22-rc3.zip |
* Start PWM after adc irq fully done
* Filter len 4
* Use comparitor 2 on timer for wrap around
* Update IRQ.cpp
* Tip measurements are uint16_t
Update BSP.cpp
Update BSP.cpp
* WiP PID
move pid tuning to config
Update PIDThread.cpp
* Handle PWM Timer gitchy comparitor
* Tuning
* Dampen with Kd
* Cleaning up
* Use TemperatureType_t for getTipTemp()
* Add small rolling average to user GUI temp to reduce flicker
* Trigger PID when adc is skipped (will use old values)
Diffstat (limited to 'source/Core/BSP/Miniware')
-rw-r--r-- | source/Core/BSP/Miniware/BSP.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Core/BSP/Miniware/BSP.cpp b/source/Core/BSP/Miniware/BSP.cpp index f7e2053b..e930f682 100644 --- a/source/Core/BSP/Miniware/BSP.cpp +++ b/source/Core/BSP/Miniware/BSP.cpp @@ -396,7 +396,7 @@ bool isTipShorted() { return tipShorted; } #else
bool isTipShorted() { return false; }
#endif
-uint8_t getTipThermalMass() {
+uint16_t getTipThermalMass() {
#ifdef TIP_RESISTANCE_SENSE_Pin
if (lastTipResistance >= 80) {
return TIP_THERMAL_MASS;
@@ -406,7 +406,7 @@ uint8_t getTipThermalMass() { return TIP_THERMAL_MASS;
#endif
}
-uint8_t getTipInertia() {
+uint16_t getTipInertia() {
#ifdef TIP_RESISTANCE_SENSE_Pin
if (lastTipResistance >= 80) {
return TIP_THERMAL_MASS;
|