"First stable ModbusRTU and ModbusTCP compiled
This commit is contained in:
@@ -45,6 +45,6 @@ float SingleValueStrategy::execute(float currentValue) {
|
|||||||
int noiseInt = rand() % 201;
|
int noiseInt = rand() % 201;
|
||||||
noiseInt -= 100;
|
noiseInt -= 100;
|
||||||
float noise = (static_cast<float>(noiseInt) / 100) * _noiseMagnitude;
|
float noise = (static_cast<float>(noiseInt) / 100) * _noiseMagnitude;
|
||||||
Serial.println("Single value strategy with noise.");
|
Serial.printf("Single value strategy with noise. %f \n", noise);
|
||||||
return _setpoint + noise;
|
return _setpoint + noise;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user