toggle menu
Cuttlefish Documentation
Cuttlefish
switch theme
search in API
Cuttlefish
/
com.roboctopi.cuttlefish.utils
/
PID
/
update
update
open
fun
update
(
state
:
Double
,
goal
:
Double
=
0.0
)
:
Double
Update PID control loop
Parameters
state
New state
goal
open
fun
update
(
state
:
Double
,
velocity
:
Double
,
goal
:
Double
=
0.0
)
:
Double
Update PID control loop
Parameters
state
New state
velocity
Current rate of change of the state
goal