Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
fang::turret::BasicFieldPitchSystem Class Reference

#include <basic_field_pitch_system.hpp>

Inheritance diagram for fang::turret::BasicFieldPitchSystem:
Collaboration diagram for fang::turret::BasicFieldPitchSystem:

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
 

Detailed Description

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.

Member Typedef Documentation

◆ Imu

◆ Motor

◆ PitchRange

Constructor & Destructor Documentation

◆ BasicFieldPitchSystem()

fang::turret::BasicFieldPitchSystem::BasicFieldPitchSystem ( std::unique_ptr< Motor motor,
const Config config 
)

Member Function Documentation

◆ initialize()

void fang::turret::BasicFieldPitchSystem::initialize ( )
override

◆ setTargetFieldPitch()

void fang::turret::BasicFieldPitchSystem::setTargetFieldPitch ( const Radians pitch)
override

Note that the pitch is relative to the robot assuming the 0 position of the motor is flat and horizontal

◆ update()

void fang::turret::BasicFieldPitchSystem::update ( )
override

The documentation for this class was generated from the following files: