MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / reset

Method reset

libraries/PID_RT/PID_RT.cpp:26–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25
26void PID_RT::reset()
27{
28 _lastTime = 0;
29 _interval = 250;
30 _errorSum = 0.0;
31 _setPoint = 0.0;
32 _input = 0.0;
33 _lastInput = 0.0;
34 _error = 0.0;
35 _output = 0.0;
36 _rangeMin = 0.0;
37 _rangeMax = 100.0;
38 _Kp = 0.0;
39 _Ki = 0.0;
40 _Kd = 0.0;
41 __Kp = 0.0;
42 __Ki = 0.0;
43 __Kd = 0.0;
44 _reverse = false;
45 _running = false;
46 _POI = true; // Proportional On Input - Error
47}
48
49
50bool PID_RT::setK(float Kp, float Ki, float Kd)

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36