This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// edit these | |
// | |
// how long should we wait for inrush to stabilize? | |
const int kInrushWait = 2 * 1000; // 2 seconds | |
// what voltage should this shut off at? | |
const float kMinSafeVolts = 14.f; | |
// test the divider at 25v and set the output value here. | |
const float kActualOutputAt25v = 4.98f; | |
// how long should we sleep for before allowing output again? really, we just |