Provides control over the drivetrain component. More...
#include <Drivetrain.h>
Public Member Functions | |
virtual void | onEnable () |
Event handler for when the component is enabled. | |
virtual void | onDisable () |
Event handler for when the component is disabled. | |
virtual void | enabledPeriodic () |
Allows the component to update itself when enabled. | |
virtual void | disabledPeriodic () |
Allows the component to execute code when disabled. | |
virtual void | Configure () |
Overload this function to apply new configuration when configuration is loaded. | |
virtual void | Log () |
Overload this function to log when LogManager calls LogAll() | |
![]() | |
Component (std::string name, int dio, bool requiresEnabledState) | |
Constructs a component with a name. | |
virtual | ~Component () |
Frees the resources allocated by the component. | |
void | Enable () |
Enables the component. | |
void | Disable () |
Disables the component. | |
bool | IsEnabled () |
Returns whether or not the component is enabled. | |
bool | EnableRequired () |
Returns whether or not the component requires to be in an enabled state. | |
int | GetDIO () |
Gets the digital i/o channel for the component. | |
std::string | GetName () |
Gets the component's name. | |
Provides control over the drivetrain component.