mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 15:14:00 -06:00
spi_temperature: Simplify and comment MAX31865 temperature calculations
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
37d7742468
commit
c69527e2b0
2 changed files with 22 additions and 19 deletions
|
@ -262,7 +262,7 @@ AD8497 = [
|
|||
]
|
||||
|
||||
def calc_pt100(base=100.):
|
||||
# Calc PT100/PT1000 temperature/resistance pairs using formula
|
||||
# Calc PT100/PT1000 resistances using Callendar-Van Dusen formula
|
||||
A, B = (3.9083e-3, -5.775e-7)
|
||||
return [(float(t), base * (1. + A*t + B*t*t)) for t in range(0, 500, 10)]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue