|
HoloLib
High-performance holonomic (X-Drive) control library for VEX V5
|
#include <odometry.hpp>
Public Member Functions | |
| EncoderEKFOdometry (pros::Motor &fl, pros::Motor &fr, pros::Motor &bl, pros::Motor &br, pros::IMU &imu_sensor, ChassisConfig cfg) | |
| Constructor initializing the EKF Odometry system. | |
| void | update (uint32_t period_ms) |
| Main loop running the processing pipeline. | |
| void | startTask (uint32_t period_ms=10) |
| Spawns the processing task thread if not already running. | |
| void | addTrackingWheel (TrackingWheelConfig config) |
| Adds a tracking wheel configuration to the pipeline. | |
| void | clearTrackingWheels () |
| Clears tracking wheels and falls back to motor layout. | |
| void | setPose (float x, float y, float theta) |
| Sets the pose of the robot. | |
| void | setPose (Pose pose) |
| Sets the pose of the robot. | |
| Pose | getPose (bool radians=false) |
| Gets the pose of the robot. | |
| void | setVelocityCalculations (bool state) |
| void | setKalmanFilterEnabled (bool enabled) |
| Enable or disable the internal Extended Kalman Filter. | |
Definition at line 52 of file odometry.hpp.
| hololib::EncoderEKFOdometry::EncoderEKFOdometry | ( | pros::Motor & | fl, |
| pros::Motor & | fr, | ||
| pros::Motor & | bl, | ||
| pros::Motor & | br, | ||
| pros::IMU & | imu_sensor, | ||
| ChassisConfig | cfg | ||
| ) |
Constructor initializing the EKF Odometry system.
| void hololib::EncoderEKFOdometry::update | ( | uint32_t | period_ms | ) |
Main loop running the processing pipeline.
| period | Task execution period in milliseconds. |
| void hololib::EncoderEKFOdometry::startTask | ( | uint32_t | period_ms = 10 | ) |
Spawns the processing task thread if not already running.
| void hololib::EncoderEKFOdometry::addTrackingWheel | ( | TrackingWheelConfig | config | ) |
Adds a tracking wheel configuration to the pipeline.
| void hololib::EncoderEKFOdometry::clearTrackingWheels | ( | ) |
Clears tracking wheels and falls back to motor layout.
| void hololib::EncoderEKFOdometry::setPose | ( | float | x, |
| float | y, | ||
| float | theta | ||
| ) |
Sets the pose of the robot.
| void hololib::EncoderEKFOdometry::setPose | ( | Pose | pose | ) |
Sets the pose of the robot.
| Pose hololib::EncoderEKFOdometry::getPose | ( | bool | radians = false | ) |
Gets the pose of the robot.
| void hololib::EncoderEKFOdometry::setVelocityCalculations | ( | bool | state | ) |
| void hololib::EncoderEKFOdometry::setKalmanFilterEnabled | ( | bool | enabled | ) |
Enable or disable the internal Extended Kalman Filter.