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

#include <basic_flywheel.hpp>

Inheritance diagram for fang::turret::BasicFlywheel:
Collaboration diagram for fang::turret::BasicFlywheel:

Classes

struct  Config
 

Public Types

using Motor = motor::ISpeedMotor
 

Public Member Functions

 BasicFlywheel (std::unique_ptr< Motor > motor, const Config &config)
 
virtual ~BasicFlywheel ()=default
 
void setTargetRimSpeed (const MetersPerSecond &rimSpeed) override
 
void initialize () override
 
void update () override
 

Detailed Description

This is meant to abstract a single flywheel of a given radius. It's update function must be periodically called in order for the motor to be called. This is not a taproot subsystem, it is meant to not be used by taproot's command scheduler. This is to provide the turret subsystem a "subsubsystem", which is not supported by taproot.

Member Typedef Documentation

◆ Motor

Constructor & Destructor Documentation

◆ BasicFlywheel()

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

◆ ~BasicFlywheel()

virtual fang::turret::BasicFlywheel::~BasicFlywheel ( )
virtualdefault

Member Function Documentation

◆ initialize()

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

◆ setTargetRimSpeed()

void fang::turret::BasicFlywheel::setTargetRimSpeed ( const MetersPerSecond rimSpeed)
override

◆ update()

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

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