|
Boboter
|
#include <bumpers.h>
Public Types | |
| enum class | bumper_id_t : uint8_t { LEFT = 0 , RIGHT = 1 } |
Public Member Functions | |
| Bumpers (Robot &robot) | |
| ~Bumpers () | |
| void | initialize () |
| Sets up the necessary GPIO pins. | |
| bool | is_hit (bumper_id_t bumper_id) const |
| Checks if the bumper is hit. | |
|
strong |
|
explicit |
| Device::Bumpers::~Bumpers | ( | ) |
| void Device::Bumpers::initialize | ( | ) |
Sets up the necessary GPIO pins.
|
nodiscard |
Checks if the bumper is hit.