Commit Graph

8 Commits

Author SHA1 Message Date
Nico Tonnhofer 9b49097ac3 configtool: stage 1 for making it compatible with python3 2019-04-18 09:09:53 +02:00
Markus Hitter 2d191768ca createTemperatureLookup.py: deal with precision limitation on R0.
Inserting a dummy value is better than risking an exception with
failure to write a thermistor table at all. Happens when for one
of the usual thermistors accidently a nominal resistance of
1000k instead of 100k is used.
2015-04-21 02:51:32 +02:00
Phil Hord 96b7b8e6c9 Update URLs for new github location 2014-03-04 19:57:08 +01:00
Markus Hitter 0eecdf895b Temperature tables: add missing const qualifiers.
Spotted and fixed by wrtlprnft, thanks for the contribution.
2013-11-16 17:31:28 +01:00
David Forrest ef6036c724 createTemperatureLookup.py: add --table option.
This option is for multiple table chunks of ThermistorTable.h.
2012-12-03 19:49:39 +01:00
Markus Hitter fd019f350f More features for createTemperatureLookup.py.
Contribution by DaveX, see
http://forums.reprap.org/read.php?147,33082,165159#msg-165159
2012-12-03 19:48:37 +01:00
Andy Kirby a35c304762 add encoding to createTemperatureLookup.py
Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
2011-03-30 12:18:42 +11:00
John Gilmore (none) 686e417401 Revised thermistor code. Thermistor table now in 14.2 fixed point
Two thermistor tables included:
  ThermistorTable.h.dist.old, which is the table we used to have, included so those already using it don't have to recalibrate.
  ThermistorTable.h.dist, which was generated with 50 entries, and trimmed down in lower temperature ranges where we don't care as much about accuracy and there's less deviation from a straight line anyway.

Corrected default temp sensor entry in config.h.dist to thermistor instead of intercom. (Now matches earlier definitions which by default say we're using a thermistor)

Added noheater sensor example to config.h.dist

Copied CreateTemperatureLook.py from "official" firmware, and modified it for 14.2 fixed point, no negative temperatures (we're using uint16_t's), and PROGMEM.

Since I simply copied the example linear interpolation formula from wikipedia, I'm certian that it could be more efficient. The code that was there wouldn't work with 14.2 table values, and my understanding of it was too shallow to fix it. This works, and upgading the calculations to uint32_t actually takes less code space than leaving them at uint16_t. I assume it's calling a library routine that's already being linked in for the 32-bit math.
2011-02-12 22:22:10 +11:00