This is a basic PD controller to be used in the demos of this package.
More...
#include <pd_control.hpp>
|
void | loop () |
| this is a simple control loop which runs at a kilohertz. More...
|
|
|
static THREAD_FUNCTION_RETURN_TYPE | loop (void *instance_pointer) |
| this function is just a wrapper around the actual loop function, such that it can be spawned as a posix thread.
|
|
This is a basic PD controller to be used in the demos of this package.
◆ PDController()
blmc_drivers::PDController::PDController |
( |
std::vector< PairMotorSlider > |
motor_slider_pairs | ) |
|
|
inline |
◆ loop()
void blmc_drivers::PDController::loop |
( |
| ) |
|
|
private |
this is a simple control loop which runs at a kilohertz.
it reads the measurement from the analog sensor, in this case the slider. then it scales it and sends it as the current target to the motor.
The documentation for this class was generated from the following files: