|
RBCX
Library for the RB3204-RBCX board with the ESP32 by RoboticsBrno.
|
Classes | |
| class | Angle |
| class | Battery |
| Contains the battery state and can control the robot's power. More... | |
| class | Buttons |
| class | Leds |
| class | Manager |
| The main library class for working with the RBCX board. Call the install() method at the start of your program. More... | |
| class | Motor |
| class | MotorChangeBuilder |
| Helper class for building the motor change event. More... | |
| class | Mpu |
| Helper class for controlling the Mpu. More... | |
| struct | MpuMotion6 |
| struct | MpuMotion9 |
| struct | MpuVector |
| class | Nvs |
| class | Oled |
| Helper class for controlling the Oled. More... | |
| class | Piezo |
| Helper class for controlling the piezo. More... | |
| class | SmartServoBusBackend |
| class | StupidServo |
| class | Timers |
| class | Ultrasound |
Enumerations | |
| enum | ButtonId : uint32_t { Off = CoprocStat_ButtonsEnum_BOFF , On = CoprocStat_ButtonsEnum_BON , B1 = CoprocStat_ButtonsEnum_B1 , B2 = CoprocStat_ButtonsEnum_B2 , B3 = CoprocStat_ButtonsEnum_B3 , B4 = CoprocStat_ButtonsEnum_B4 , Up = B1 , Down = B2 , Left = B3 , Right = B4 } |
| Helper class for controlling the LEDs connected to the expander. More... | |
| enum | LedId { L1 = CoprocReq_LedsEnum_L1 , L2 = CoprocReq_LedsEnum_L2 , L3 = CoprocReq_LedsEnum_L3 , L4 = CoprocReq_LedsEnum_L4 , Green = L1 , Yellow = L2 , Red = L3 , Blue = L4 , All = L1 | L2 | L3 | L4 } |
| Helper class for controlling the LEDs connected to the expander. More... | |
| enum | ManagerInstallFlags { MAN_NONE = 0 , MAN_DISABLE_MOTOR_FAILSAFE = (1 << 0) , MAN_DISABLE_ESP_WATCHDOG = (1 << 1) } |
| This enum contains flags for the Manager's install() method. More... | |
| enum class | MotorId : uint8_t { M1 , M2 , M3 , M4 , MAX } |
Functions | |
| Angle | operator+ (Angle a, Angle b) |
| Angle | operator- (Angle a, Angle b) |
| Angle | operator* (Angle a, Angle::_T c) |
| Angle | operator/ (Angle a, Angle::_T c) |
| Angle | operator""_deg (long double d) |
| Angle | operator""_rad (long double r) |
| Angle | operator""_deg (unsigned long long int d) |
| Angle | operator""_rad (unsigned long long int r) |
| ManagerInstallFlags | operator| (ManagerInstallFlags a, ManagerInstallFlags b) |
| MotorId | operator++ (MotorId &x) |
| Decrements the motor ID. More... | |
| MotorId | operator-- (MotorId &x) |
| static void | dieTimers (TimerHandle_t timer) |
| template<typename T > | |
| T | clamp (T value, T min, T max) |
| void | delayMs (int ms) |
Delay for given number of milliseconds. Like Arduino's delay() More... | |
| void | delay (std::chrono::duration< uint32_t, std::milli > delay) |
Delay for given number of microseconds. Like Arduino's delayMicroseconds() More... | |
Variables | |
| static constexpr int | UltrasoundsCount = 4 |
| static constexpr int | StupidServosCount = 4 |
| enum rb::ButtonId : uint32_t |
| enum rb::LedId |
This enum contains flags for the Manager's install() method.
|
strong |
| T rb::clamp | ( | T | value, |
| T | min, | ||
| T | max | ||
| ) |
|
inline |
Delay for given number of microseconds. Like Arduino's delayMicroseconds()
| us |
|
inline |
Delay for given number of milliseconds. Like Arduino's delay()
| ms |
|
static |
| Angle rb::operator""_deg | ( | long double | d | ) |
| Angle rb::operator""_deg | ( | unsigned long long int | d | ) |
| Angle rb::operator""_rad | ( | long double | r | ) |
| Angle rb::operator""_rad | ( | unsigned long long int | r | ) |
|
inline |
|
staticconstexpr |
|
staticconstexpr |