Class SimpleFeeder

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class SimpleFeeder : public fang::turret::SimpleFeederSubsystem

Intermediate dependency injection based class using the deprecated feeder api

Subclassed by fang::turret::M2006SimpleFeeder

Public Types

using Motor = motor::ISpeedMotor
using HeatLimiter = fang::turret::HeatLimiter

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

Public Members

int roundsPerRevolution
Hertz feedRate
RPM unjamSpeed
HeatLimiter::Config heatLimiterConfig