|
libstp
Robotics library for Botball
|
Per-motor static-friction (kS) measurement. More...
#include <static_friction.hpp>
Public Member Functions | |
| StaticFrictionMeasurer (const std::vector< hal::motor::IMotor * > &motors) | |
| StaticFrictionResult | measureMotor (hal::motor::IMotor *motor, const StaticFrictionConfig &cfg) const |
| Measure a single motor. | |
| std::map< int, StaticFrictionResult > | measure (const StaticFrictionConfig &cfg) const |
| Measure every motor passed at construction. | |
Per-motor static-friction (kS) measurement.
Sweeps the PWM duty from start_pct upward until the measured BEMF median crosses a "moving" threshold; repeats in reverse. The minimum percentage at which the motor starts spinning is the static-friction compensation value used by feedforward controllers.
Definition at line 19 of file static_friction.hpp.
|
explicit |
|
nodiscard |
Measure every motor passed at construction.
|
nodiscard |
Measure a single motor.