From b12157cb6fb914ae6194776094923bba01ef4e52 Mon Sep 17 00:00:00 2001 From: David Forrest Date: Wed, 19 Feb 2014 16:32:17 -0500 Subject: [PATCH] gcode_process.c: Add comment on units of P, I, and D parameters. --- gcode_process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcode_process.c b/gcode_process.c index 0c08e7a..89e98ea 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -654,6 +654,7 @@ void process_gcode_command() { case 130: //? --- M130: heater P factor --- //? Undocumented. + // P factor in counts per degreeC of error #ifdef HEATER_EXTRUDER if ( ! next_target.seen_P) next_target.P = HEATER_EXTRUDER; @@ -666,6 +667,7 @@ void process_gcode_command() { case 131: //? --- M131: heater I factor --- //? Undocumented. + // I factor in counts per C*s of integrated error #ifdef HEATER_EXTRUDER if ( ! next_target.seen_P) next_target.P = HEATER_EXTRUDER; @@ -677,6 +679,7 @@ void process_gcode_command() { case 132: //? --- M132: heater D factor --- //? Undocumented. + // D factor in counts per degreesC/second #ifdef HEATER_EXTRUDER if ( ! next_target.seen_P) next_target.P = HEATER_EXTRUDER;