Commit Graph

148 Commits (786baebbf892e4367100cdf1af9d7363a1cba37c)

Author SHA1 Message Date
Christopher Olah 786baebbf8 Confirm dangerous extruder target temperatures.
Protect the user from typos in setting the extruder temp by confirming
them with the user if they exceed 250.
2013-02-02 10:25:16 -05:00
kliment c527601f85 Merge pull request #321 from colah/clean-firmware-echo
Clean up echoed firmware lines, connect info.
2013-01-19 00:39:25 -08:00
Christopher Olah 1460246960 Clean up echoed firmware lines, connect info.
Presently, when you connect to a printer using pronsole, one sees
something like:

uninitialized>start
uninitialized>Printer is now online
uninitialized>echo: External Reset
printer>Marlin 1.0.0 RC2
...

With a few carriage returns and some string hackery, we clean up
the output so that one sees:

No port specified - connecting to /dev/ttyACM0 at 115200bps
start
Printer is now online
External Reset
Marlin 1.0.0 RC2

Much cleaner!
2013-01-19 18:34:15 -05:00
kliment c02e586533 Merge pull request #320 from colah/clean-monitor
Clean up the monitor command.
2013-01-19 00:39:06 -08:00
Christopher Olah 3fb7a3e71c Clean up the monitor command.
The monitor command now:

* Has more pythonic code
* Limits precision of progress elements (12.3% instead of 12.347812...%)
* Uses a carriage return to have print progress replace the previous
  progress line.

For example:

Monitoring printer, use ^C to interrupt.
Updating values every 5.000000 seconds.
Print progress: 0.3%

Previously, the line "Print progress: 0.3%" was "Print progress: 0.2%",
etc.
2013-01-19 19:11:04 -05:00
Christopher Olah 29c9700324 Fancy configurable prompts!
* Prompts are now generated based off of string templates,
  for example: "%(bold)sT:%(extruder_temp_fancy)s %(progress_fancy)s
  >%(normal)s "

* We have a dictionary of prompt string templates for different
  situations.

* We have bold support for the prompt.

* We have extruder temperature support for the prompt.

* We have progress support for the prompt.
2013-01-19 19:34:07 -05:00
kliment 917256f947 Merge pull request #314 from colah/Ctr-C-D-fix
Fix Ctr-C and Ctr-D behavior.
2013-01-12 11:50:41 -08:00
Chris Olah a377b85c8f Make the dynamic prompt temperature stuff configurable. 2013-01-12 14:14:10 -05:00
Christopher Olah d3c1fbaa75 Fix Ctr-C and Ctr-D behavior.
We replace the cmdloop function with a slightly modified version
to achieve standard unix shell behavior on keyboard interupts and EOF.
2013-01-11 19:26:04 -05:00
Christopher Olah a224a10ce0 We make the prompt aware of extruder temperature.
In order to do this, we consolidate handeling of printer status
with a Status class. The status class is updated by recvcb.

This has the side effect of simplifying the implementation of gettemp.

We also detect whether there is a heated build platform or not, and
don't display info about it if there isn't.
2013-01-11 19:02:14 -05:00
Chris Olah df0265d4c6 Make prompt dynamically generated.
Prompt is now generated by a promptf() call for every cmdloop iteration.
2013-01-09 18:59:39 -05:00
Mikko Sivulainen 577ed7c8fb added gcoder from another project. using gcoder to calculate dimensions and used filament 2012-10-17 20:47:12 +03:00
Mikko Sivulainen ab9002c579 fixed measurement calculation for X and Y axis
Conflicts:

	pronsole.py
2012-10-09 19:06:46 +03:00
Guillaume Seguin 107280b822 Rerun reindent.py 2012-09-05 10:11:48 +02:00
Guillaume Seguin bff5a8ff51 Merge branch 'experimental' into connection-rework
Conflicts:
	printrun/printcore.py
	pronsole.py
	pronterface.py
2012-09-05 09:56:16 +02:00
Guillaume Seguin fd08509b75 Merge branch 'experimental' of https://github.com/kliment/Printrun into experimental
Conflicts:
	pronterface.py
2012-09-02 11:48:31 +02:00
D1plo1d ef6ffecfd4 Patching do_load so that it updates the pronterface ui when the load command is used within pronterface
Conflicts:

	pronterface.py
2012-08-20 11:47:04 -04:00
Markus Hitter 47aea82ade pronsole.py: repeat manual commands only in non-verbose mode.
In verbose mode (self.p.loud = True), the code actually sending
the G-code line prints this, too, so this was a duplicate.
2012-08-13 16:34:54 +02:00
Guillaume Seguin 6f446e3726 More automated cleanup 2012-08-08 09:58:09 +02:00
Guillaume Seguin 77eb2440e3 Semi-automated coding style cleanup 2012-08-08 09:38:48 +02:00
Guillaume Seguin e3b8fb491d Whitespaces 2012-08-08 08:41:31 +02:00
Guillaume Seguin 8cc134955f Run reindent.py on the whole repository 2012-08-08 08:39:50 +02:00
Guillaume Seguin 08c42443f1 Improve (and fix) time displays 2012-08-07 13:54:07 +02:00
Guillaume Seguin 24b7f97887 Correctly import printcore in pronsole and pronterface 2012-08-04 10:43:29 +02:00
Guillaume Seguin 72173c6023 Add CLI parameters for web config files location (if not in ~/.printrun or cwd)
Also remove the chdir() to pronterface.py directory
2012-07-31 22:37:00 +02:00
Guillaume Seguin cc60367a83 New commandline paramters : -w/--web to request web interface
Also install webinterface deps and fix bug in configfile()
2012-07-31 12:00:05 +02:00
Guillaume Seguin 888143be42 Initial work towards a setup.py build system 2012-07-31 10:51:17 +02:00
Kliment Yanev e73e11d554 Allow unicode characters in custom button command names 2012-07-15 14:55:11 +02:00
Kliment Yanev 73055e59a8 Fix math domain error in estimation code.
Make crash in estimation code not block file load.
Diable web interface by default.
2012-07-15 13:07:16 +02:00
Nathan Zadoks 227c0595a2 made wording slicer-agnostic 2012-05-23 17:01:04 +02:00
Jeremy Hammett dbbb51a4e0 Disable constant Temperature display in console 2012-05-05 20:10:30 +01:00
Kliment Yanev 556ba0fbc2 Merge branch 'master' of https://github.com/PxT/Printrun into experimental 2012-05-04 07:47:21 +02:00
Paul Telford fee5b5b9f7 Adds support for running an executable when print is finished. 2012-05-03 13:55:41 -07:00
Jeremy Hammett 06296a5346 Issue 174 - Correct layer-count when z is lifted for travel moves 2012-04-28 15:22:10 +02:00
Nathan Zadoks c2baae7bbb Lines starting with $ are now passed through too. 2012-03-01 14:13:57 +01:00
Keegi c187622660 Changed way .pronsolerc is saved so that it is possible to symlink it 2012-02-13 09:39:33 +02:00
Alessandro Ranellucci 34ede756a6 Full GPLv3 notice 2012-01-23 12:36:49 +01:00
Alessandro Ranellucci 7d2ef9a6b6 Added licensing info to README and all source files 2012-01-23 12:17:28 +01:00
Christian Metzen 2c28694b03 merge missing translations from pronsole, add new ones, clean up naming scheme 2012-01-19 09:26:23 +01:00
Kliment Yanev 2a20f67eba Avoid division by zero during estimation 2012-01-07 19:50:54 +01:00
Kliment Yanev 1a90feb2ef Fix command line handling for stl files with spaces in the name 2011-12-22 11:07:52 +01:00
Kliment Yanev 505e62afc0 Add gettext import to pronsole 2011-12-21 09:12:40 +01:00
Christopher Keller 930583a176 Added Tooltips and a Help Dictionary for the User Options. 2011-12-20 03:48:23 -08:00
Kliment Yanev 3e06eb7431 Merge remote-tracking branch 'origin/master' into experimental 2011-12-11 11:12:02 +01:00
Christopher Keller 882298ed6f Reduced the amount of data emitted to the user.
The extra data while interesting, belongs in a deliberate command to show stats.
summary line reads:
  Estimated duration (pessimistic):  187 layers, 00:29:42
2011-12-09 15:50:09 -08:00
Kliment Yanev 8941eb74c5 Fix bug with slic3r gcode and duration estimation
Make STLs less shiny on non-Linux OSs
2011-12-09 20:11:56 +01:00
kliment a2d5cd5d1c Merge pull request #122 from kliment/master
Merge fixes added to master into experimental
2011-12-07 05:08:49 -08:00
Christopher Keller f2434e75b5 Complete rewrite of time estimation with (default) acceleration!
Accounts for G4 Pxxx
  Accounts for Z moves as well.
  Also prints out duration for each layer while calculating the total time.

  Does not use individual axis acceleration, only uses sprinter default acceleration 1500.0 mm/s/s
  Does not count E for timing... so if E is slowing down the move, we're not accounting for that.

** fixed: 2x distance to reach full speed, because accel and decel to 0.0 at each move.

TODO:
  Get Device Caps (per axis acceleration, per axis speed limits)
  anything else...?
2011-12-01 11:24:53 -08:00
Kliment Yanev 5c4e1691e2 Merge branch 'master', remote-tracking branch 'origin' into experimental 2011-11-30 06:44:00 +01:00
Christopher Keller cc40719e6c Fixed the time estimator in pronsole.py
at beginning of move set feedrate to average of last and current feedrate.  do move with that feedrate.
then set the feedrate to the current feedrate.
if it's just a feedrate change, then the feedrate will become the feedrate.
if there is no feedrate in current move, feedrate will be last feedrate
if there is a move and a new feedrate then the move will take however long the average feedrate would take.

estimation is a bit more optimistic than pessimistic.  however it seems to be a lot more accurate.
2011-11-28 20:36:04 -08:00