|
Boboter
|
Class containing all the components of the robot. More...
#include <robot.h>
Classes | |
| struct | task_config_t |
| struct | data_struct |
Public Types | |
| enum class | robot_mode_t : uint8_t { NONE = 0 , APP = 1 , GAMEPAD = 2 } |
| enum class | status_led_mode_t : uint8_t { OFF = 0 , ON = 1 , BLINK_SLOW = 2 , BLINK_FAST = 3 } |
| enum class | rgb_leds_mode_t : uint8_t { OFF = 0 , HEADLIGHTS = 1 , RANDOM_COLORS = 2 , POLICE = 3 } |
Public Member Functions | |
| Robot (const Robot &)=delete | |
| Robot & | operator= (const Robot &)=delete |
| void | create_task (const task_config_t &config) |
| Creates a FreeRTOS task. | |
| void | enter_permanent_sleep () |
| Shuts down all HALs, pulls down a few pins and puts the ESP32 into deep sleep mode. | |
| void | set_status_led (bool state) const |
| Sets the status LED. | |
| void | set_bottom_led (bool state) const |
| Sets the bottom LED state. | |
Static Public Member Functions | |
| static Robot & | get_instance () |
| Gets the robot instance. | |
Static Public Attributes | |
| static constexpr gpio_num_t | STATUS_LED_PIN = GPIO_NUM_5 |
| static constexpr gpio_num_t | BOTTOM_LED_PIN = GPIO_NUM_13 |
Class containing all the components of the robot.
|
strong |
|
strong |
|
strong |
|
delete |
| void Robot::create_task | ( | const task_config_t & | config | ) |
Creates a FreeRTOS task.
| config | The configuration of the task to create |
| void Robot::enter_permanent_sleep | ( | ) |
Shuts down all HALs, pulls down a few pins and puts the ESP32 into deep sleep mode.
|
inlinestatic |
Gets the robot instance.
| void Robot::set_bottom_led | ( | bool | state | ) | const |
Sets the bottom LED state.
| state | Whether the LED should be turned on (true) or off (false) |
| void Robot::set_status_led | ( | bool | state | ) | const |
Sets the status LED.
| state | Whether the LED should be turned on (true) or off (false) |
| HAL::ADC::Controller& Robot::adc |
| Device::Battery Robot::battery |
|
staticconstexpr |
| Device::Bumpers Robot::bumpers |
| Device::Buttons Robot::buttons |
| Device::Buzzer Robot::buzzer |
| Device::Colorsensor Robot::colorsensor |
| protected_struct<data_struct> Robot::data {} |
| Device::Display Robot::display |
| Device::Encoders Robot::encoders |
| HAL::GPIO::Controller& Robot::gpio |
| HAL::I2C::Controller& Robot::i2c |
| Device::Imu Robot::imu |
| HAL::LEDC::Controller& Robot::ledc |
| Device::Leds Robot::leds |
| Device::Linefollower Robot::linefollower |
| Device::Motors Robot::motors |
|
staticconstexpr |
| Device::Ultrasonic Robot::ultrasonic |