1
0
forked from me/IronOS

Better limiter in the PID

This commit is contained in:
Ben V. Brown
2021-09-15 19:05:11 +10:00
parent a213f4bd97
commit bfca4c9336
3 changed files with 6 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ void setTipX10Watts(int32_t mw) {
x10WattHistory.update(actualMilliWatts);
}
static uint32_t availableW10(uint8_t sample) {
uint32_t availableW10(uint8_t sample) {
// P = V^2 / R, v*v = v^2 * 100
// R = R*10
// P therefore is in V^2*100/R*10 = W*10.