From 973ef971438b14e25b1c9d1002f86fab94dad33e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 18 Mar 2018 11:23:20 -0400 Subject: pid_calibrate: Move PID calibration logic from heater.py to new file Drop support for M303 and PID_TUNE, and replace it with a new PID_CALIBRATE command. Move the logic for this command from heater.py to a new pid_calibrate.py file in the extras/ directory. Signed-off-by: Kevin O'Connor --- docs/G-Codes.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/G-Codes.md b/docs/G-Codes.md index 73fd2e93..25ff7550 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -26,7 +26,6 @@ Klipper supports the following standard G-Code commands: - Get current position: `M114` - Get firmware version: `M115` - Set home offset: `M206 [X] [Y] [Z]` -- Run PID tuning: `M303 [E] S` For further details on the above commands see the [RepRap G-Code documentation](http://reprap.org/wiki/G-code). @@ -65,6 +64,13 @@ The following standard commands are supported: verify that an endstop is working correctly. - `GET_POSITION`: Return information on the current location of the toolhead. +- `PID_CALIBRATE HEATER= TARGET= + [WRITE_FILE=1]`: Perform a PID calibration test. The specified + heater will be enabled until the specified target temperature is + reached, and then the heater will be turned off and on for several + cycles. If the WRITE_FILE parameter is enabled, then the file + /tmp/heattest.txt will be created with a log of all temperature + samples taken during the test. - `RESTART`: This will cause the host software to reload its config and perform an internal reset. This command will not clear error state from the micro-controller (see FIRMWARE_RESTART) nor will it -- cgit v1.2.3-70-g09d2