This commit is contained in:
RobertJDavis
2025-10-23 12:53:36 -07:00
parent b95e8132c9
commit 8304941cb6
9 changed files with 563 additions and 6 deletions

View File

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