Calculating PWM slope functions with seconds

Value changes once per second now instead of once per minute when
calculations are done.  Was needed to take advantage of higher precision
calculations.