Added more variables to the logfile.

Signed-off-by: Bas Laarhoven <sjml@xs4all.nl>
Removed the gettime from the log_entry function and made the timestamp a parameter.

Signed-off-by: Bas Laarhoven <sjml@xs4all.nl>
More accurate and faster heater PID cycle timing.

Signed-off-by: Bas Laarhoven <sjml@xs4all.nl>
Increased default PWM frequency from 10 to 100 Hz. Removed K constant from PID settings, added Feed Forward settings.

Signed-off-by: Bas Laarhoven <sjml@xs4all.nl>
Fixed PID loop timing. Introduced frequency setting.

Signed-off-by: Bas Laarhoven <sjml@xs4all.nl>
Added feed-forward values to output printed by M136.

Signed-off-by: Bas Laarhoven <sjml@xs4all.nl>
Resurrected the disappeared heater debug output. Using same string as is being written to logfile.

Signed-off-by: Bas Laarhoven <sjml@xs4all.nl>
Changed PID calculations for I and D to use real time instead of PID cycles.

Signed-off-by: Bas Laarhoven <sjml@xs4all.nl>
Added feed forward term to output calculation.

Signed-off-by: Bas Laarhoven <sjml@xs4all.nl>
Restored PWM frequency for extruder (was increased by feed-forward patches). Added feed-forward settings for bed.

Signed-off-by: Bas Laarhoven <sjml@xs4all.nl>
Do not log to file if the proper named logfile does not exist. To enable logging, just create the file.
Fixed logging for other than first the heater. Spread the load evenly over time instead of doing all calculations and logging in a single burst.
Concept for setting E-axis mode from gcode.
Moved handling of relative E-axis to central location.
Moved handling of relative E-axis to central location (part II).
Cosmetic and comment changes.
Changed implementation and use of adjust origin for PRUSS. No longer assumes consistency between c-code and PRUSS coordinates, but really shifts the origin a delta for all coordinates. Needs version 4 of PRUSS code !
Moved handling of relative E-axis to central location (part III).
Remove VIRT_POS_MID_SCALE offset from adjust origin call.
Added dependency.