11#include <soc/gpio_num.h>
19 static constexpr const char* TAG =
"Device::Bumpers";
22 static constexpr gpio_num_t LEFT_PIN = GPIO_NUM_35;
23 static constexpr gpio_num_t RIGHT_PIN = GPIO_NUM_34;
Bumpers(Robot &robot)
Definition bumpers.cpp:13
~Bumpers()
Definition bumpers.cpp:19
bumper_id_t
Definition bumpers.h:28
@ RIGHT
Definition bumpers.h:30
@ LEFT
Definition bumpers.h:29
bool is_hit(bumper_id_t bumper_id) const
Checks if the bumper is hit.
Definition bumpers.cpp:45
void initialize()
Sets up the necessary GPIO pins.
Definition bumpers.cpp:23
Class containing all the components of the robot.
Definition robot.h:32
log_source
Definition log_sources.h:12
@ LOG_SOURCE_DEVICE_BUMPERS
Definition log_sources.h:25
Definition battery.cpp:14