MechaLib
The robust, all-in-one software library for MechaLeague Robots
Loading...
Searching...
No Matches
RobotBase Class Referenceabstract

#include <RobotBase.h>

Detailed Description

The main class a robot program should extend, RobotBase will act as a container for the parent robot functions

Public Member Functions

virtual void robotSetup ()=0
 robotSetup is called once when the robot is powered on or reset.
virtual void robotLoop ()=0
 robotLoop is called repeatedly in the main Arduino loop.
virtual void autoSetup ()=0
 autoSetup is called when the robot enters autonomous mode.
virtual void autoLoop ()=0
 autoLoop is called repeatedly during autonomous mode right after robotLoop.
virtual void driverSetup ()=0
 driverSetup is called when the robot enters teleoperated mode.
virtual void driverLoop ()=0
 driverLoop is called repeatedly during teleoperated mode right after robotLoop.
virtual void disabledSetup ()=0
 disabledSetup is called when the robot enters disabled mode.
virtual void disabledLoop ()=0
 disabledLoop is called repeatedly during disabled mode right after robotLoop.

Member Function Documentation

◆ autoLoop()

virtual void RobotBase::autoLoop ( )
pure virtual

autoLoop is called repeatedly during autonomous mode right after robotLoop.

◆ autoSetup()

virtual void RobotBase::autoSetup ( )
pure virtual

autoSetup is called when the robot enters autonomous mode.

◆ disabledLoop()

virtual void RobotBase::disabledLoop ( )
pure virtual

disabledLoop is called repeatedly during disabled mode right after robotLoop.

◆ disabledSetup()

virtual void RobotBase::disabledSetup ( )
pure virtual

disabledSetup is called when the robot enters disabled mode.

◆ driverLoop()

virtual void RobotBase::driverLoop ( )
pure virtual

driverLoop is called repeatedly during teleoperated mode right after robotLoop.

◆ driverSetup()

virtual void RobotBase::driverSetup ( )
pure virtual

driverSetup is called when the robot enters teleoperated mode.

◆ robotLoop()

virtual void RobotBase::robotLoop ( )
pure virtual

robotLoop is called repeatedly in the main Arduino loop.

◆ robotSetup()

virtual void RobotBase::robotSetup ( )
pure virtual

robotSetup is called once when the robot is powered on or reset.


The documentation for this class was generated from the following file: