The main library class for working with the RBControl board. Call the install() method at the start of your program.
More...
#include <RBControl_manager.hpp>
The main library class for working with the RBControl board. Call the install() method at the start of your program.
◆ Manager()
rb::Manager::Manager |
( |
Manager const & |
| ) |
|
|
delete |
◆ battery()
◆ config()
Nvs& rb::Manager::config |
( |
| ) |
|
|
inline |
◆ expander()
◆ get()
static Manager& rb::Manager::get |
( |
| ) |
|
|
inlinestatic |
Get manager instance.
Always returns the same instance and is thread-safe. Don't forget to call install() to initialize the manager at the start of your program, when you first get the instance.
◆ initSmartServoBus()
rb::SmartServoBus & rb::Manager::initSmartServoBus |
( |
uint8_t |
servo_count, |
|
|
gpio_num_t |
pin = GPIO_NUM_32 , |
|
|
uart_port_t |
uart = UART_NUM_1 |
|
) |
| |
Initialize the UART servo bus for intelligent servos LX-16.
- Returns
- Instance of the class SmartServoBus which manage the intelligent servos.
◆ install()
Initialize the manager - must be called once at the start of the program.
- Parameters
-
flags | modify the manager's behavior or toggle some features. SeeManagerInstallFlags} enum. |
◆ leds()
Leds& rb::Manager::leds |
( |
| ) |
|
|
inline |
◆ monitorTask()
void rb::Manager::monitorTask |
( |
TaskHandle_t |
task | ) |
|
◆ motor()
◆ operator=()
void rb::Manager::operator= |
( |
Manager const & |
| ) |
|
|
delete |
◆ piezo()
Piezo& rb::Manager::piezo |
( |
| ) |
|
|
inline |
Get the Piezo controller.
◆ schedule()
void rb::Manager::schedule |
( |
uint32_t |
period_ms, |
|
|
std::function< bool()> |
callback |
|
) |
| |
|
inline |
Schedule callback to fire after period (in millisecond).
Return true from the callback to schedule periodically, false to not (singleshot timer).
- Parameters
-
period_ms | is period in which will be the schedule callback fired |
callback | is a function which will be schedule with the set period. |
◆ servoBus()
Get the SmartServoBus for working with intelligent servos LX-16..
- Returns
- Instance of the class SmartServoBus which manage the intelligent servos.
◆ setMotors()
◆ timers()
Timers& rb::Manager::timers |
( |
| ) |
|
|
inline |
◆ Encoder
◆ MotorChangeBuilder
◆ PcntInterruptHandler
friend class PcntInterruptHandler |
|
friend |
The documentation for this class was generated from the following files: