Michael Moon
84457ccc4b
disable unused sersendf, enable %x in sersendf_P
2011-02-12 22:44:24 +11:00
Michael Moon
7eb6febf8e
serwrite_hex32 would only show 4 nibbles, fixed
2011-02-12 22:42:00 +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
Michael Moon
6c1040c740
typo
2011-02-12 22:20:33 +11:00
Michael Moon
79674da51b
try to make E behave
2011-02-12 22:20:18 +11:00
Michael Moon
a6e8850ae3
tell users to press ctrl+D to exit
2011-02-11 12:01:01 +11:00
John Gilmore
d10eb7b944
Enhancements to func.sh - idiot proofed mendel_talk
...
Also added a few comments.
2011-02-11 12:01:01 +11:00
Nirav Patel
48fcffb588
Set the correct pins for RAMPS v1.1
2011-02-11 11:57:17 +11:00
Michael Moon
3c5acd7ca7
disable interrupt if setTimer(0) is called
2011-02-11 11:53:27 +11:00
Michael Moon
d91f30eda1
ensure step timer doesn't fire by itself after a period of inactivity
2011-02-10 19:57:16 +11:00
Markus Amsler
69f30f0691
timer: Use 2 comparator interrupts, one for the clock, the other for stepping.
...
The old implementation with an overflow interrupt for the clock and a comparator interrupt for stepping, had an unsolvable bug: If the comparator interrupt should happen very shortly after the overflow interrupt the comparator interrupt would miss. And with 2 comparators the implementation is more straightforward.
2011-02-10 19:53:58 +11:00
Michael Moon
c5901cb04d
missed a semicolon
...
Reported-by: jgilmore
2011-02-09 13:55:04 +11:00
Michael Moon
71eafbf96b
keep power on when heaters are active
...
Reported-by: Jacky2K@forums.reprap.org
2011-02-09 08:16:15 +11:00
Markus Amsler
fc57cfc5de
Add Extruder.pde, so extruder is compilable with Arduino IDE
2011-02-09 07:48:29 +11:00
Markus Amsler
7f32aa80bb
G28: home all axis if no axis is selected
2011-02-09 07:47:55 +11:00
Markus Amsler
398f68e2db
make *_MIN_PIN defines optional
2011-02-09 07:47:41 +11:00
Jacky2k
aec41c59aa
gcode_process and pinio need to include config.h
...
Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
2011-02-09 07:46:04 +11:00
Michael Moon
02e30dcb0a
add sd.c for future, currently unused
2011-02-08 22:37:17 +11:00
Markus Amsler
d5033895b2
Fix timer for high speeds.
2011-02-08 21:57:58 +11:00
Michael Moon
8ebce94e4d
add soft limits to configs
2011-02-08 19:03:21 +11:00
Michael Moon
4da63d31ff
fix homing code
2011-02-08 17:53:42 +11:00
Michael Moon
0110af2ede
preliminary homing code- not linked into anything yet
2011-02-08 17:52:51 +11:00
Michael Moon
47a23317be
allow home-to-max setups
2011-02-08 17:52:32 +11:00
Michael Moon
5118f788d2
preliminary support for soft-limits
2011-02-08 17:52:10 +11:00
Michael Moon
5df49c2d3e
allow DEBUG and BANG_BANG at the same time
2011-02-08 14:49:22 +11:00
Michael Moon
00fc05a49b
fix timer bug- if delay is smaller than TICK_TIME but counter has passed delay when timer is set, it will wait a whole TICK_TIME before firing instead of setting comparator to fire at correct time
...
check next_step_time instead of delay in comparison
Reported-by: Markus Amsler <markus.amsler@oribi.org>
2011-02-08 09:43:50 +11:00
Michael Moon
553f3a50a6
some config templates, also bang-bang heater support to reduce code size
2011-02-07 20:48:57 +11:00
Michael Moon
b5299c4d69
protect ANALOG_MASK from arithmetic errors via de-macro-isation
2011-02-07 20:47:32 +11:00
Michael Moon
e4fc55289b
use constants for conditional compilation since preprocessor can't work out enums and we can't define in macros
2011-02-06 21:34:44 +11:00
Michael Moon
1c723f7656
remove definition macros, doesn't work
2011-02-06 21:11:39 +11:00
Michael Moon
d1b2754aba
sorting out preprocessor interactions
2011-02-06 21:11:39 +11:00
Michael Moon
97f344f0fa
changes discussed in chat on pull 19
2011-02-06 21:11:39 +11:00
John Gilmore
fe034d5e35
graycode stepper operation, distilled to one line in dda.c
...
Which includes a seperate file (graycode.c) with the defines and additional variable declaration.
I went with the "graycode" spelling, as there's about ten times as many hits for that as for "greycode" on google. I've read that both spellings are acceptable, but whatever.
Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
2011-02-06 16:42:08 +11:00
Markus Amsler
021ac75e2f
Fix typo in x_min
2011-02-05 13:33:26 +11:00
Michael Moon
4ed24d4507
move Echo on/off to M240/M241
2011-02-04 12:08:52 +11:00
Michael Moon
1815ab1ef7
make it even harder to unintentionally include fuse definitions
2011-02-04 11:04:15 +11:00
Markus Amsler
d88179a9ce
Makefile: Remove .eeprom .fuse .lock sections from hex file.
...
Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
2011-02-04 11:00:45 +11:00
Vik Olliver
fa91ef8472
fix thermistor lookup table interpolation code
...
Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
2011-02-02 18:23:10 +11:00
Stephan Walter
f1b526696b
forgot to rename type
2011-02-01 19:40:28 +11:00
Stephan Walter
fcaa76d3c0
Simpler definition of temp sensors and heaters.
2011-02-01 19:40:27 +11:00
Michael Moon
14809c4a7c
make bed heater define zero-based
2011-01-27 21:03:26 +11:00
plasmator
0ab6e0bb6e
Added Arduino Mega2560 support to arduino.h
...
Signed-off-by: plasmator <public@plasmatoruniversi.com>
Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
2011-01-27 20:31:40 +11:00
plasmator
80e98e9b22
Added Heated Bed Support
...
Signed-off-by: plasmator <public@plasmatoruniversi.com>
Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
2011-01-27 20:31:39 +11:00
Michael Moon
7b29beb127
clarify/expand PWMable pins and mappings in config.h.dist
2011-01-26 11:43:52 +11:00
Michael Moon
007d3c9736
initialise 16-bit timers on the mega1280 correctly
2011-01-25 12:47:22 +11:00
madscifi
a98886d236
Correctly set AIO_DDR register
...
Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
2011-01-24 11:32:00 +11:00
Stephan Walter
4febbea2f8
fix decfloat_to_int, Less divisions in decfloat_to_int.
...
Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
2011-01-11 19:20:17 +11:00
Michael Moon
c364e8f873
disable fuses by default
2011-01-11 16:42:12 +11:00
Michael Moon
1fa0036008
fix arithmetic error
2011-01-10 10:15:42 +11:00
Markus Hitter
719a9d32b5
gcode_parse.c: Limit the digits right of the decimal.
...
Previously, variables in decfloat_to_int() could overflow due to
excess precision, like Z2.0000000.
2011-01-08 12:15:13 +11:00