Susol Breaker

This commit is contained in:
Emmanuel HC
2025-09-29 15:42:54 -05:00
parent 3efa2c6cf5
commit 252b7e839a
8 changed files with 535 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ float SingleValueStrategy::execute(float currentValue) {
int noiseInt = rand() % 201;
noiseInt -= 100;
float noise = (noiseInt / 100) * _noiseMagnitude;
float noise = (static_cast<float>(noiseInt) / 100) * _noiseMagnitude;
Serial.println("Single value strategy with noise.");
return _setpoint + noise;
}