klipper-dgus/klippy
Kevin O'Connor 3a7a77d49e basecmd: Improve accuracy of stats "sumsq" variable
Use a base of 256 instead of 65536 when calculating the sum of the
square of the clock differences in the stats.  This makes the
calculation more accurate.  Export the new base via DECL_CONSTANT for
the host to access.  Use DIV_ROUND_UP() when adjusting for the base to
ensure no lost ticks.  Do the division after multiplication in the
common case where the time between stats_task() invocations is less
than 64K ticks.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2017-01-09 23:08:23 -05:00
..
cartesian.py extruder: Calculate sane defaults for extrude only velocity and accel 2017-01-03 18:18:30 -05:00
chelper.py serialqueue: Remove serialqueue_flush_ready() 2016-12-30 20:15:05 -05:00
console.py build: Define DECL_CONSTANT mechanism for defining exported constants 2016-12-23 17:06:10 -05:00
delta.py extruder: Calculate sane defaults for extrude only velocity and accel 2017-01-03 18:18:30 -05:00
extruder.py extruder: Calculate sane defaults for extrude only velocity and accel 2017-01-03 18:18:30 -05:00
fan.py mcu: Convert PWM and ADC objects to take mcu_time instead of clock 2016-08-24 15:16:02 -04:00
gcode.py gcode: Add support for M115 command 2016-12-28 22:38:29 -05:00
heater.py klippy: Add ConfigWrapper.getchoice method 2016-11-30 21:19:44 -05:00
homing.py gcode: Rework homing to use greenlets 2016-12-09 17:09:51 -05:00
klippy.py gcode: Add support for M115 command 2016-12-28 22:38:29 -05:00
list.h Initial commit of source code. 2016-05-25 11:37:40 -04:00
mcu.py basecmd: Improve accuracy of stats "sumsq" variable 2017-01-09 23:08:23 -05:00
msgproto.py klippy: No need to define __str__ and __init__ methods on exception classes 2016-11-29 18:49:12 -05:00
parsedump.py Initial commit of source code. 2016-05-25 11:37:40 -04:00
pins.py pins: Add Arduino Due pin name aliases 2016-06-14 15:41:18 -04:00
pyhelper.c pyhelper: Add ability to route error messages to python logging 2016-11-30 21:19:43 -05:00
pyhelper.h pyhelper: Add ability to route error messages to python logging 2016-11-30 21:19:43 -05:00
queuelogger.py queuelogger: Add support for background log writing 2016-11-12 22:53:43 -05:00
reactor.py reactor: Add support for greenlets 2016-11-29 21:54:45 -05:00
serialhdl.py serialqueue: Remove serialqueue_flush_ready() 2016-12-30 20:15:05 -05:00
serialqueue.c serialqueue: Remove serialqueue_flush_ready() 2016-12-30 20:15:05 -05:00
serialqueue.h serialqueue: Remove serialqueue_flush_ready() 2016-12-30 20:15:05 -05:00
stepcompress.c stepcompress: Flush periodically if adding more than 64K steps in a move 2016-12-31 13:21:53 -05:00
stepper.py stepper: Change default max_error from 50us to 25us 2016-12-28 22:38:27 -05:00
toolhead.py extruder: Calculate sane defaults for extrude only velocity and accel 2017-01-03 18:18:30 -05:00
util.py gcode: Add support for M115 command 2016-12-28 22:38:29 -05:00