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


Classes | |
| struct | Config |
Public Types | |
| using | Motor = motor::ISpeedMotor |
| using | HeatLimiter = fang::turret::HeatLimiter |
Public Member Functions | |
| SimpleFeeder (Drivers &drivers, std::unique_ptr< Motor > feedMotor, const Config &config) | |
| void | feedOn () override |
| void | feedOff () override |
| void | unjamOn () override |
| void | unjamOff () override |
| bool | getActiveStatus () |
| void | initialize () override |
| void | update () override |
| void | refresh () override |
Public Member Functions inherited from fang::turret::SimpleFeederSubsystem | |
| SimpleFeederSubsystem (tap::Drivers &drivers) | |
| virtual | ~SimpleFeederSubsystem () |
Public Member Functions inherited from tap::control::Subsystem | |
| Subsystem (Drivers *drivers) | |
| virtual | ~Subsystem () |
| void | registerAndInitialize () |
| mockable void | setDefaultCommand (Command *defaultCommand) |
| mockable Command * | getDefaultCommand () const |
| virtual void | refreshSafeDisconnect () |
| mockable void | setTestCommand (Command *testCommand) |
| mockable Command * | getTestCommand () const |
| virtual const char * | getName () const |
| mockable int | getGlobalIdentifier () const |
Additional Inherited Members | |
Protected Attributes inherited from tap::control::Subsystem | |
| Drivers * | drivers |
Intermediate dependency injection based class using the deprecated feeder api
| fang::turret::SimpleFeeder::SimpleFeeder | ( | Drivers & | drivers, |
| std::unique_ptr< Motor > | feedMotor, | ||
| const Config & | config | ||
| ) |
A positive value sent to the feedMotor means that it will feed.
|
override |
|
override |
| bool fang::turret::SimpleFeeder::getActiveStatus | ( | ) |
Check if the feed system is feeding ammo or not.
|
overridevirtual |
Called once when you add the Subsystem to the commandScheduler stored in the Drivers class.
Implements fang::turret::SimpleFeederSubsystem.
|
overridevirtual |
Called in the scheduler's run function assuming this command has been registered with the scheduler. This function should contain code that must be periodically updated and is generic to the subsystem (i.e. updating a control loop generic to this subsystem). This function should not contain command specific control code. When you create a subclass of Subsystem, you should overwrite this virtual function.
Must be virtual otherwise scheduler will refer to this function rather than looking in child for this function.
Reimplemented from tap::control::Subsystem.
|
override |
|
override |
|
override |