Fix manual gain calculator.
Slope 0 might be better for digital.