Commit Graph

1455 Commits

Author SHA1 Message Date
Markus Hitter 29dd85a129 Configtool: also prettify writing heater definitions. 2015-04-21 02:51:31 +02:00
Markus Hitter 778af87102 Configtool: prettify writing sensor definitions.
This might look a bit oversensitive right now, but soon we'll also
write temperature table data, then it makes more sense.
2015-04-21 02:51:31 +02:00
Markus Hitter 2b5e28a4c8 Configtool: on configuration mismatch, save instead of load.
Loading led to building a firmware which didn't match what was
visible in the dialogs when the build was started. Very
misleading.
2015-04-21 02:51:31 +02:00
Markus Hitter 6a93cbac64 Configtool: don't overwrite configtool.default.ini.
It's rarely a good idea to overwrite files coming with a
distribution. Not for users, because they can't reset to factory
values; not for developers, because Git would pick up such changed
files.

Instead we read from configtool.default.ini now, but write to
configtool.ini. If configtool.ini is already present, it's
prefered over configtool.default.ini.
2015-04-21 02:51:31 +02:00
Markus Hitter c7ef3b9ff9 Configtool: report save settings success directly in SettingsDlg.
There we have access to the actual file name.
2015-04-21 02:51:31 +02:00
Markus Hitter a217465e65 SIMINFO: fetch device name from Makefile / compile parameters.
It's also possible to do this by stringifying MCU, but this
requires double redirection, which isn't easily readable in a .c
file. For stringification, see the bottom example at
https://gcc.gnu.org/onlinedocs/cpp/Stringification.html
2015-04-21 02:51:31 +02:00
Markus Hitter 1cc1cc5c14 Makefiles: rename "MCU_TARGET" to "MCU".
Cosmetic change.
2015-04-21 02:51:31 +02:00
Markus Hitter 01621cfbdb Makefiles: adjust comments.
- "Traumflug" and "Markus Hitter" are the same, mention him only
   once.

 - Add more common F_CPU choices in comments.

 - Hint to another choice in Makefile-example.
2015-04-21 02:51:31 +02:00
Markus Hitter 74c9924366 run-in-simulavr.sh: make stopping on "stop" working again.
It was so far unnoticed that the "simulavr" program is only a
script when run from within the build directory. Still killing it
by name worked, because bash's exec didn't terminate the initiating
script.

Apparently this week Ubuntu updated bash and the new version now
terminates the initiating script (which is a good idea), but now
the executable to kill by name has a different name. It's prefixed
with "lt-". As this "lt-" is hardcoded we can rely on it.
2015-04-21 02:51:31 +02:00
Markus Hitter a6be2f9584 dda.c: add forgotten variable declaration.
Forgotten in commit 74808610c7,
"DDA: Move axis calculations into loops, part 5.".

This and the previous commit makes ACCELERATION_TEMPORAL building
(and working!) again.
2015-04-21 02:51:31 +02:00
Markus Hitter a303f1ba3e dda.c: complete the rename from all_step to last_step.
Next time, please at least try to compile the code section in
question when explicitely changing the section. In this case,
with ACCELERATION_TEMPORAL enabled. It didn't build.

Was broken with commit 95926a3f113809bde8ff0c84b94c55c73e398f67,
"DDA: Rename confusing variable name.".
2015-04-21 02:51:31 +02:00
Markus Hitter 69e91b8acd ACCELERATION_TEMPORAL: always disable lookahead.
We simply don't support it, yet. And warn about it, so developers
get encouraged to add the few missing bits.
2015-04-21 02:51:31 +02:00
Markus Hitter 7d7d6178cf Remove now obsolete copier.c/.h.
Original author @triffid about these files:

  "The idea was to be able to program another board from your
   electronics without PC intervention, but reprap never seemed
   to go down that road."

Should solve Issue #115.
2015-04-21 02:51:31 +02:00
jbernardis 77d9b3d3c6 Configtool: finally remove all the old templates.
As they're all converted, they're no longer of any use. Still
they were kept up to this commit to allow comparisons between
old and new config.h system.
2015-04-21 02:51:31 +02:00
jbernardis 20af64d780 Configtool: convert template for Teensy++ 2.0.
Note the "++", it's a Teensy 2.0 with bigger CPU and more I/O pins.
2015-04-21 02:51:31 +02:00
jbernardis bcf7691bdd Configtool: convert template for Teensy 2.0. 2015-04-21 02:51:31 +02:00
jbernardis 845804f182 Configtool: convert template for Sanguish. 2015-04-21 02:51:31 +02:00
jbernardis b491d122b3 Configtool: convert template for 3Drag Controller. 2015-04-21 02:51:30 +02:00
jbernardis 0a848fffc1 Configtool: convert template for RUMBA. 2015-04-21 02:51:30 +02:00
jbernardis f67ad76b3c Configtool: convert template for Gen6. 2015-04-21 02:51:30 +02:00
jbernardis face7c0dc7 Configtool: convert template for Gen3. 2015-04-21 02:51:30 +02:00
jbernardis 342e1c4df7 Configtool: convert template for Sanguinololu v1.2. 2015-04-21 02:51:30 +02:00
jbernardis 821e0c1295 Configtool: convert template for Sanguinololu v1.1. 2015-04-21 02:51:30 +02:00
jbernardis 7ebdb81ce7 Configtool: convert template for RAMPS v1.2. 2015-04-21 02:51:30 +02:00
jbernardis 31858b7082 Configtool: convert template for Gen7 v1.1-v1.3.
Also sort printers in config.default.h alphabetically and make
Mendel the default printer.
2015-04-21 02:51:30 +02:00
jbernardis b5ba625697 config/board.ramps-v1.3.h: add yet another possible heater pin. 2015-04-21 02:51:30 +02:00
jbernardis a1b0dac6af Configtool: use --save-temps=obj again.
It has turned out developers use Configtool, too, so it makes
sense to keep temporary files for inspection.
2015-04-21 02:51:30 +02:00
jbernardis ee8f5f9170 Configtool: some code prettifications.
Pure whitespace changes.
2015-04-21 02:51:30 +02:00
jbernardis 2436ac2865 Configtool: a few more apperance enhancements. 2015-04-21 02:51:30 +02:00
jbernardis cbc87fc526 Configtool: align labels and choices vertically.
wxPython apparently doesn't allow to do this automatically,
so do it kind of manually, with a constand in data.py.
--Traumflug
2015-04-21 02:51:30 +02:00
jbernardis be8b0da71a Configtool: remove "Load default" menu entry.
This one is pretty pointless, because every user has a different
printer, so we can't deliver a meaningful default with the
distribution.
2015-04-21 02:51:30 +02:00
jbernardis 73f7e43227 Configtool: enforce correct configuration file names.
Previously one could save a board or printer configuration with
a name which wouldn't allow to load it again.
2015-04-21 02:51:30 +02:00
jbernardis 706ccf0637 Configtool: protect original config files.
Likely users don't care too much about the name of the saved file,
so they likely use the default ones. If they mess up, they also
likely want to return to the original, but, d'oh, it's overwritten.
Don't let this happen, enforce a non-original file name for user
saves.

In other words: don't let users shoot themselfs into their foot.
2015-04-21 02:51:27 +02:00
Markus Hitter 1cd21251d2 Get rid of STEP_INTERRUPT_INTERRUPTIBLE.
It was certainly a good idea, but also always a suspect of
malfunctions and as such, almost never used. Newer code
organisation moves most of the code behind it to dda_clock()
anyways, so it also became mostly obsolete.

Rest In Peace, STEP_INTERRUPT_INTERRUPTIBLE, you were matter
of quite a number of interesting discussions and investigations.

Changes for Configtool by jbernardis <jeff.bernardis@gmail.com>
2015-04-21 02:11:01 +02:00
Markus Hitter e2e77ae927 Configtool: remove version information.
Teacup doesn't do releases, it's a rolling release :-)
2015-04-21 02:11:01 +02:00
Markus Hitter 6e19270f43 Configtool: rename to configtool.py.
All the stuff is in configtool/, there's configtool.ini, config.py
can be easily confused with config.h, ... quite a number of
reasons.
2015-04-21 02:11:01 +02:00
jbernardis 74f0c88df9 Configtool: added REPORT_TARGET_TEMPS ...
... in anticipation of it's being adopted.

This also nicely shows how simple it is to add (or remove) a
configurable option to the config tool.
2015-04-21 02:11:01 +02:00
jbernardis bb29d50f31 temp.c: also report target temperatures.
It's handy and some hosts actually expect this.
2015-04-21 02:11:01 +02:00
Markus Hitter 443c3eb8ad Configtool: swap Edit and Build menu.
This should match typical menu layout guidelines better.
2015-04-21 02:11:01 +02:00
jbernardis 552b21b76e board.ramps-v1.3.h: add predefined fan output. 2015-04-21 02:11:01 +02:00
jbernardis 9985c3936d Configtool: many changes.
1) If variables are missing from .h files, they are added.
2) Settings file now modifiable from within the program.
3) A few cosmetic fixes.
2015-04-21 02:11:01 +02:00
jbernardis b9f524d256 Configtool: add the ability to build and upload. 2015-04-21 02:11:01 +02:00
jbernardis d6b2a2293e Configtool: incorporate most of previous comments.
See discussion to Issue #111 on Github.
2015-04-21 02:10:58 +02:00
jbernardis d7789ee217 Configtool: major restructuring.
We distinguish between printers and boards now. Most of the
code was split into one file per tab/window and moved into
configtool/.
2015-04-21 02:07:12 +02:00
jbernardis 943a8326a9 Configtool: new version.
This time a tabbed design. Requires quite a bit more code, but
visual appearance is also much much better.
2015-02-05 21:03:39 +01:00
Markus Hitter 0d956511f9 Configtool: first steps for a user friendly configuration tool.
Contribution by jbernardis.

This attempt uses a rarther simple tree-type dialog. Also only
half done, which is entirely sufficient for evaluation.
2015-02-05 21:03:30 +01:00
Markus Hitter 86f1fc418f Enforce Unix line endings (LF).
This should convert all files checked into the repository to
LF line endings, with exception of pictures and PDFs. Trying
to commit CRLF text on Unix will issue a warning when doing
"git add" or "git commit -a".

Users prefering CRLF (Windows) can set their local copy of the
repository to convert files on the fly at checkout with

  git config --local core.autocrlf = true

Note: Git acts pretty stubborn on files which don't match the
.gitattributes rules, but are already committed. This can
happen after every change to .gitattributes. Git doesn't want
to keep these files as-is in the repository and insists on
conversion as soon as they're touched somehow. The only way to
deal with this is to either edit .gitattributes again (in case
these enforced conversions don't match the intention) or to
commit the enforced changes immediately.

To put a bit more oil into the fire, Git doesn't recognize all
misalignments immediately, but trusts its cache. Accordingly
it's a good idea to clear this cache after any change to
.gitattributes:

  rm .git/index

Having this done, all further proceedings will show all
misaligments immerdiately.

For further instructions and descriptions see
http://schacon.github.io/git/gitattributes.html
http://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/
http://git.661346.n2.nabble.com/possible-gitattributes-eol-bug-with-new-eol-crlf-lf-support-td5516458.html
https://help.github.com/articles/dealing-with-line-endings/#refreshing-a-repository-after-changing-line-endings
2015-02-04 00:10:37 +01:00
Markus Hitter 4c34674b6e dda.c/.h: reduce debounce counting variable.
As we can always only move towards one end of an axis, one common
variable to count debouncing is sufficient.

Binary size 12 bytes smaller (and faster).
2015-01-09 13:11:06 +01:00
Markus Hitter f577431aac home.c, dda.c: consider endstops on both axis ends when homing.
Previously, when backing off of X_MIN, X_MAX was also checked,
which of course was already open, so it signals endstop release
even while X_MIN is still closed. The issue exposed only when
endstops on both ends of an axis were defined, a more rare situation.

Essentially the fix simply makes a distinct endstop check case
for each side of each axis.

This even makes binary size 40 bytes smaller for the standard case.
2015-01-09 13:11:01 +01:00
konoppo a0125dedfc gcode_parse.c: don't assume G1 on pure M- or T-codes.
Offending code were lines like these from Repetier Host:

  N8965 M117 ETE 29m 10s *86

When firmware received not-G command (M-command or T-command) with X, Y,
Z, E or F coordinate, it will "change" this command to G1.
Now, firmware do change only if received line is not either G- or M-
or T-command.

Examples:
X10 - is changed to G1 X10
E20 F300 - is changed to G1 E20 F300
M117 E1 - is NOT changed to G1 E1

This commit costs 6 bytes binary size.
2015-01-06 16:28:51 +01:00