|
| | Robot (units::second_t period=kDefaultPeriod) |
| | Robot (units::hertz_t frequency) |
◆ Robot() [1/2]
| valor::Robot::Robot |
( |
units::second_t | period = kDefaultPeriod | ) |
|
|
explicit |
Constructor for Robot. Aborts if another robot instance is detected.
- Parameters
-
| period | The period of the robot loop function. |
◆ Robot() [2/2]
| valor::Robot::Robot |
( |
units::hertz_t | frequency | ) |
|
|
inlineexplicit |
Constructor for Robot.
- Parameters
-
| frequency | The frequency of the robot loop function. |
◆ GetRobot()
| Robot & valor::Robot::GetRobot |
( |
| ) |
|
|
static |
Get the current running robot.
- Returns
- The reference to the currently running robot. Aborts if the robot pointer is nullptr
◆ HasRobot()
| bool valor::Robot::HasRobot |
( |
| ) |
|
|
inlinestatic |
Gets whether a Robot instance is active.
- Returns
- A boolean representing whether there is a robot instance. Implies that GetRobot() is safe to call.
The documentation for this class was generated from the following file: