|
libstp
Robotics library for Botball
|
Tunes per-axis velocity PID gains via step-response identification. More...
#include <velocity_tune.hpp>
Public Member Functions | |
| VelocityTuner (drive::Drive &drive, odometry::IOdometry &odometry) | |
| VelocityTuneResult | tuneAxis (const std::string &axis, double max_velocity, const VelocityTuneConfig &cfg) const |
| Tune a single velocity axis. | |
| std::map< std::string, VelocityTuneResult > | tune (const std::vector< std::string > &axes, const std::map< std::string, double > &max_velocities, const VelocityTuneConfig &cfg) const |
| Tune multiple axes in sequence. | |
Tunes per-axis velocity PID gains via step-response identification.
For each axis (vx, vy, wz) VelocityTuner:
Definition at line 30 of file velocity_tune.hpp.
| libstp::autotune::VelocityTuner::VelocityTuner | ( | drive::Drive & | drive, |
| odometry::IOdometry & | odometry ) |
| drive | Chassis drive controller (reference, not owned). |
| odometry | Odometry source (reference, not owned). |
|
nodiscard |
Tune multiple axes in sequence.
Axes not present in max_velocities are skipped with a warning.
| axes | Axis names to tune (e.g. {"vx", "wz"}). |
| max_velocities | Map from axis name to max physical velocity. |
| cfg | Shared tuning configuration. |
|
nodiscard |
Tune a single velocity axis.
| axis | One of "vx", "vy", or "wz". |
| max_velocity | Maximum physical velocity for this axis (m/s or rad/s); typically obtained from DriveCharacterizer. |
| cfg | Tuning configuration. |