|
| | D () |
| | Constructs a derivative controller.
|
| T | get_dt () |
| | Gets the controller sampling time.
|
| T | get_e_k_1 () |
| | Gets the previous control error.
|
| T | get_Kd () |
| | Gets the derivative gain.
|
| T | get_u_max () |
| | Gets the maximum controller output.
|
| void | init (T dt_, T Kd_, T u_max_) |
| | Initializes the derivative controller.
|
| void | merge (T u_k_1_) |
| | Merges an external controller output into the derivative state.
|
| void | reset () |
| | Resets the derivative controller state.
|
| void | set_dt (T dt_) |
| | Sets the controller sampling time.
|
| void | set_Kd (T Kd_) |
| | Sets the derivative gain.
|
| void | set_param (T dt_, T Kd_, T u_max_) |
| | Sets the derivative controller parameters.
|
| void | set_u_max (T u_max_) |
| | Sets the maximum controller output.
|
| T | update (T x_0, T x) |
| | Computes the derivative control output.
|
template<typename T>
class control_system::derivative::D< T >
Discrete-time derivative controller.
The D class implements a discrete-time derivative controller using a configurable derivative gain and sampling time.
The derivative contribution is calculated from the change in control error between successive controller iterations.
The previous control error is maintained as internal state and the controller output is limited by the configured maximum output value.
- Template Parameters
-
| T | Numeric data type used for the controller. |
- Example
0.001,
100.0
);
double output = controller.
update(reference, measurement);
Discrete-time derivative controller.
void init(T dt_, T Kd_, T u_max_)
Initializes the derivative controller.
T update(T x_0, T x)
Computes the derivative control output.
Definition at line 76 of file d.h.