RaidZeroLib
Coroutine robot framework for VEX V5
Loading...
Searching...
No Matches
TwoEncoderOdometry.hpp
1#pragma once
2#include "RaidZeroLib/api/Hardware/Sensor.hpp"
3#include "RaidZeroLib/api/Odometry/Odometry.hpp"
4
5namespace rz {
6
12class TwoEncoderOdometry final : public Odometry {
13 public:
14 struct Config {
17 };
18
21
22 protected:
23 [[nodiscard]] Twist displacement() override;
24
25 private:
26 Sensor<Length>& left;
27 Sensor<Length>& right;
28 Config config;
29};
30
31} // namespace rz
Odometry(std::string_view name)
Definition Odometry.hpp:40
A reading from hardware, or computed from other sensors.
Definition Sensor.hpp:25
Differential motion (twist) in SE(2) space.
Definition Twist.hpp:16
Twist displacement() override
How the robot moved in its own frame since the previous tick.
TwoEncoderOdometry(Sensor< Length > &left, Sensor< Length > &right, Config config)
au::QuantityD< au::Meters > Length
Definition Units.hpp:9
Definition DriverControl.hpp:11
Definition TwoEncoderOdometry.hpp:14
Length trackWidth
Between the left and right wheels.
Definition TwoEncoderOdometry.hpp:16