Class SimpleFeeder¶
Defined in File simple_feeder.hpp
Nested Relationships¶
Nested Types¶
Inheritance Relationships¶
Base Type¶
public fang::turret::SimpleFeederSubsystem(Class SimpleFeederSubsystem)
Derived Type¶
public fang::turret::M2006SimpleFeeder(Class M2006SimpleFeeder)
Class Documentation¶
-
class SimpleFeeder : public fang::turret::SimpleFeederSubsystem¶
Intermediate dependency injection based class using the deprecated feeder api
Subclassed by fang::turret::M2006SimpleFeeder
Public Functions
-
SimpleFeeder(Drivers &drivers, std::unique_ptr<Motor> feedMotor, const Config &config)¶
A positive value sent to the feedMotor means that it will feed.
-
void feedOn() override¶
-
void feedOff() override¶
-
void unjamOn() override¶
-
void unjamOff() override¶
-
bool getActiveStatus()¶
Check if the feed system is feeding ammo or not.
-
virtual void initialize() override¶
-
void update() override¶
-
virtual void refresh() override¶
-
struct Config¶
roundsPerRevolution cannot be negative or zero which would cause corruption. feedRate - this is the starting rounds per second motorConfig - this is the configuration of the feeder motor
-
SimpleFeeder(Drivers &drivers, std::unique_ptr<Motor> feedMotor, const Config &config)¶