lurg and epic: the 1-2-5 progression extended to real numbers

In the Axis gui for emc2, there is a logarithmic jog speed slider. It has been suggested to replace this with a slider that works in 1-2-5 increments, and to extend it to the new "Max Speed" control.

However, the required value can sometimes not be a value actually from the 1-2-5 progression, for instance, at the top of the scale or when the value has been set by an external force.

For this reason, I've written a pair of functions, "lurg" and "epic", which are continuous version of the 1-2-5 function.

Files currently attached to this page:

powers.py2.0kB



Entry first conceived on 19 November 2008, 23:25 UTC, last modified on 15 January 2012, 3:46 UTC
Website Copyright © 2004-2024 Jeff Epler