pic: Modified slew rate code



This is Bilbo’s bang-bang code modified to work from 0 to -1 with the slew rate calculations changed.