1#ifndef BITSIM_CONTROL_PI_CONTROLLER_H
2#define BITSIM_CONTROL_PI_CONTROLLER_H
40 void reset() { integral_ = 0.0; }
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
PIController(real_t kp, real_t ki, real_t limit)
Definition pi_controller.cpp:11
void reset()
Forget the integral.
Definition pi_controller.h:40
real_t kp() const noexcept
Definition pi_controller.h:42
real_t limit() const noexcept
Definition pi_controller.h:44
real_t update(real_t error, real_t dt, real_t feedforward=0.0)
The output for the error after a step of dt [s].
Definition pi_controller.cpp:19
real_t ki() const noexcept
Definition pi_controller.h:43
real_t integral() const noexcept
Definition pi_controller.h:45
Controllers: PID controllers, line following, a quadrotor flight controller, a fixed wing autopilot,...
Definition control_module.h:18
Definition dc_motor_backend_base.h:9
double real_t
real_t
Definition bitsim_types.h:20