Class SimpleAmmoBooster

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class SimpleAmmoBooster : public fang::turret::SimpleAmmoBoosterSubsystem

Manages two flywheels. Update must been called periodically. Assumes they are horizontal.

Subclassed by fang::turret::PierceAmmoBooster

Public Types

using Flywheel = motor::ISpeedWheel
using Flywheels = std::vector<std::unique_ptr<Flywheel>>

Public Functions

SimpleAmmoBooster(Drivers &drivers, Flywheels &&flywheels, const Config &config)

You need to std::move the vector of flywheels. Theoretically, it should throw an error should you attempt to copy unique pointers.

void boostOn() override
void boostOff() override
void update() override
virtual void refresh() override
virtual void initialize() override
struct Config

Public Members

MetersPerSecond ammoVelocity