Skip to content

Namespace rb

Namespace List > rb

Classes

Type Name
class Angle
class Battery
Contains the battery state and can control the robot's power.
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.
class Motor
class MotorChangeBuilder
Helper class for building the motor change event.
class Nvs
class Piezo
Helper class for controlling the piezo.
class SmartServoBus
class StupidServo
class Timers
class Ultrasound

Public Types

Type Name
enum uint32_t ButtonId
Helper class for controlling the LEDs connected to the expander.
enum LedId
Helper class for controlling the LEDs connected to the expander.
enum ManagerInstallFlags
This enum contains flags for the Manager 's install() method.
enum uint8_t MotorId

Public Static Attributes

Type Name
constexpr int StupidServosCount = = 4
constexpr int UltrasoundsCount = = 4

Public Functions

Type Name
T clamp (T value, T min, T max)
void delay (std::chrono::duration< uint32_t, std::milli > delay)
void delayMs (int ms)
Angle operator""_deg (long double d)
Angle operator""_deg (unsigned long long int d)
Angle operator""_rad (long double r)
Angle operator""_rad (unsigned long long int r)
Angle operator* (Angle a, Angle::_T c)
Angle operator+ (Angle a, Angle b)
MotorId operator++ (MotorId & x)
Angle operator- (Angle a, Angle b)
Angle operator/ (Angle a, Angle::_T c)
ManagerInstallFlags operator| (ManagerInstallFlags a, ManagerInstallFlags b)

Public Static Functions

Type Name
void dieTimers (TimerHandle_t timer)

Public Types Documentation

enum ButtonId

enum rb::ButtonId {
    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
};

enum LedId

enum rb::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
};

enum ManagerInstallFlags

enum rb::ManagerInstallFlags {
    MAN_NONE = 0,
    MAN_DISABLE_MOTOR_FAILSAFE = (1 << 0)
};

enum MotorId

enum rb::MotorId {
    M1,
    M2,
    M3,
    M4,
    MAX
};

Public Static Attributes Documentation

variable StupidServosCount

constexpr int rb::StupidServosCount;

variable UltrasoundsCount

constexpr int rb::UltrasoundsCount;

Public Functions Documentation

function clamp

template<typename T typename T>
T rb::clamp (
    T value,
    T min,
    T max
) 

function delay

inline void rb::delay (
    std::chrono::duration< uint32_t, std::milli > delay
) 

function delayMs

inline void rb::delayMs (
    int ms
) 

function operator""_deg

Angle rb::operator""_deg (
    long double d
) 

function operator""_deg

Angle rb::operator""_deg (
    unsigned long long int d
) 

function operator""_rad

Angle rb::operator""_rad (
    long double r
) 

function operator""_rad

Angle rb::operator""_rad (
    unsigned long long int r
) 

function operator*

Angle rb::operator* (
    Angle a,
    Angle::_T c
) 

function operator+

Angle rb::operator+ (
    Angle a,
    Angle b
) 

function operator++

inline MotorId rb::operator++ (
    MotorId & x
) 

function operator-

Angle rb::operator- (
    Angle a,
    Angle b
) 

function operator/

Angle rb::operator/ (
    Angle a,
    Angle::_T c
) 

function operator|

inline ManagerInstallFlags rb::operator| (
    ManagerInstallFlags a,
    ManagerInstallFlags b
) 

Public Static Functions Documentation

function dieTimers

static void rb::dieTimers (
    TimerHandle_t timer
) 

The documentation for this class was generated from the following file demo-projets/esp/RBCXAngle.cpp