|
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 | 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 | 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. | |
Class containing all the components of the robot.
|
strong |
|
delete |
| void Robot::create_task | ( | const task_config_t & | config | ) |
Creates a FreeRTOS task.
| config | The configuration of the task to create |
|
inlinestatic |
Gets the robot instance.
| void Robot::permanent_sleep | ( | ) |
Shuts down all HALs, pulls down a few pins and puts the ESP32 into deep sleep mode.
| 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 |
| Device::Buttons Robot::buttons |
| Device::Buzzer Robot::buzzer |
| protected_struct<data_struct> Robot::data {} |
| Device::Display Robot::display |
| HAL::GPIO::Controller& Robot::gpio |
| HAL::I2C::Controller& Robot::i2c |
| HAL::LEDC::Controller& Robot::ledc |
| Device::Leds Robot::leds |