Fixed an issue where it would not calc amp Also initialised max min to 0
Fixed an issue where it would not calc amp
Also initialised max min to 0

philj56/robot-swing,philj56/robot-swing,philj56/robot-swing