Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
fang::turret::CorrectingFieldPitch< Output > Class Template Reference

#include <correcting_field_pitch.hpp>

Inheritance diagram for fang::turret::CorrectingFieldPitch< Output >:
Collaboration diagram for fang::turret::CorrectingFieldPitch< Output >:

Classes

struct  Config
 

Public Types

using ModdedCascadeMotor = motor::ModdedCascadePosition< Output, RPM >
 
- Public Types inherited from fang::turret::BasicFieldPitchSystem
using PitchRange = math::Range< Radians >
 
using Motor = motor::IPositionMotor
 
using Imu = trap::communication::sensors::IImu
 

Public Member Functions

 CorrectingFieldPitch (std::unique_ptr< motor::IOutputMotor< Output > > motor, std::unique_ptr< ControlTelemetry > controlTelemetry, std::unique_ptr< IntermediateTelemetry > intermediateTelemetry, const Config &config)
 
- Public Member Functions inherited from fang::turret::BasicFieldPitchSystem
 BasicFieldPitchSystem (std::unique_ptr< Motor > motor, const Config &config)
 
void initialize () override
 
void update () override
 
void setTargetFieldPitch (const Radians &pitch) override
 

Detailed Description

template<typename Output>
class fang::turret::CorrectingFieldPitch< Output >

This is slightly different from other pitch systems in the fact that it takes a dualCascadePosition instead of a position motor.

This is able to add compensation for the tilt

It also requires telemetry for

Member Typedef Documentation

◆ ModdedCascadeMotor

template<typename Output >
using fang::turret::CorrectingFieldPitch< Output >::ModdedCascadeMotor = motor::ModdedCascadePosition<Output, RPM>

Constructor & Destructor Documentation

◆ CorrectingFieldPitch()

template<typename Output >
fang::turret::CorrectingFieldPitch< Output >::CorrectingFieldPitch ( std::unique_ptr< motor::IOutputMotor< Output > >  motor,
std::unique_ptr< ControlTelemetry >  controlTelemetry,
std::unique_ptr< IntermediateTelemetry >  intermediateTelemetry,
const Config config 
)
inline

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