Class SimpleAmmoBooster¶
Defined in File simple_ammo_booster.hpp
Nested Relationships¶
Nested Types¶
Inheritance Relationships¶
Base Type¶
public fang::turret::SimpleAmmoBoosterSubsystem(Class SimpleAmmoBoosterSubsystem)
Derived Type¶
public fang::turret::PierceAmmoBooster(Class PierceAmmoBooster)
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¶
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¶
-
MetersPerSecond ammoVelocity¶
-
using Flywheel = motor::ISpeedWheel¶