1516b Over Under 2.0
Codebase for 1516b over under season
|
The Wings class represents the wings of a robot. More...
#include <wings.h>
Public Member Functions | |
void | run () |
Runs the wings. | |
void | setState (bool wingState) |
Sets the state of the wings. | |
bool | getState () |
Gets the current state of the wings. | |
Private Attributes | |
bool | state |
The Wings class represents the wings of a robot.
The Wings class provides functionality to control and operate the wings of a robot. It allows the robot to perform various actions related to the wings, such as running them.
bool Robot::Wings::getState | ( | ) |
void Robot::Wings::run | ( | ) |
Runs the wings.
This function activates the wings and starts their operation. It allows the robot to perform actions that involve the movement or control of the wings.
Definition at line 7 of file wings.cpp.
References Robot::Globals::controller, setState(), state, Robot::Globals::wing, and Robot::Globals::wing2.
Referenced by opcontrol().
void Robot::Wings::setState | ( | bool | wingState | ) |
|
private |
The current state of the wings. The state variable represents the current state of the wings. It can be either true or false, indicating whether the wings are activated or deactivated. This variable is used to control the behavior of the wings and to query their current state.
Definition at line 42 of file wings.h.
Referenced by getState(), run(), and setState().