Liking cljdoc? Tell your friends :D

com.lemondronor.pid


clampclj/s

(clamp x min max)

Clamps a value x to the range [min, max] such that the return value is always within that range.

Clamps a value `x` to the range [`min`, `max`] such that the return
value is always within that range.
sourceraw docstring

pidclj/s

(pid c)

Creates a PID controller.

Creates a PID controller.
sourceraw docstring

scaleclj/s

(scale x in-min in-max out-min out-max)

Maps a value x from the input domain of [in-min, in-max] to the output range of [out-min, out-max].

Maps a value `x` from the input domain of [`in-min`, `in-max`] to
the output range of [`out-min`, `out-max`].
sourceraw docstring

set-coefficientsclj/s

(set-coefficients c kp ki kd)

Sets the Kp, Ki, and Kd coefficients of a PID controller c. Coefficients should be specified in units of "per second", and will be scaled for the controller's actual sample rate.

Sets the Kp, Ki, and Kd coefficients of a PID controller `c`.
Coefficients should be specified in units of "per second", and
will be scaled for the controller's actual sample rate.
sourceraw docstring

set-sample-periodclj/s

(set-sample-period c sample-period-ms)

Sets a PID controller c's sample sample-period, in millseconds.

Sets a PID controller `c`'s sample sample-period, in millseconds.
sourceraw docstring

set-sample-rateclj/s

(set-sample-rate c rate)

Sets a PID controller c's sample rate, in Hz.

Sets a PID controller `c`'s sample rate, in Hz.
sourceraw docstring

updateclj/s

(update c time-ms input)

Updates a PID controller.

Updates a PID controller.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close