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


Additional Inherited Members | |
Public Types inherited from fang::chassis::BaseQuadDrive | |
| using | Motor = motor::ISpeedMotor |
| using | Motors = QuadCollection< std::unique_ptr< Motor > > |
Protected Attributes inherited from tap::control::Subsystem | |
| Drivers * | drivers |
This checks the power useage and appropriately downscales it
| fang::chassis::PowerQuadDrive::PowerQuadDrive | ( | Drivers & | drivers, |
| Motors && | motors, | ||
| std::unique_ptr< IPowerLimiterSystem > | powerLimiter | ||
| ) |
|
inlinevirtual |
|
overridevirtual |
Called once when you add the Subsystem to the commandScheduler stored in the Drivers class.
Reimplemented from fang::chassis::BaseQuadDrive.
|
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 fang::chassis::BaseQuadDrive.
|
overridevirtual |
Reimplemented from fang::chassis::BaseQuadDrive.
|
overridevirtual |
Reimplemented from fang::chassis::BaseQuadDrive.