|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <basic_field_pitch_system.hpp>


Classes | |
| struct | Config |
Public Types | |
| using | PitchRange = math::Range< Radians > |
| using | Motor = motor::IPositionMotor |
| using | Imu = trap::communication::sensors::IImu |
Public Member Functions | |
| BasicFieldPitchSystem (std::unique_ptr< Motor > motor, const Config &config) | |
| void | initialize () override |
| void | update () override |
| void | setTargetFieldPitch (const Radians &pitch) override |
Dead reckoning field pitch system. Assumes the robot is flat, making it technically a field pitch system
This clamps the pitch to prevent damage tothe robot.
| fang::turret::BasicFieldPitchSystem::BasicFieldPitchSystem | ( | std::unique_ptr< Motor > | motor, |
| const Config & | config | ||
| ) |
|
override |
|
override |
Note that the pitch is relative to the robot assuming the 0 position of the motor is flat and horizontal
|
override |