|
RBControl
Library for the RB3201-RBControl board with the ESP32 by RoboticsBrno.
|
#include <driver/gpio.h>#include <driver/pcnt.h>#include <driver/periph_ctrl.h>#include <esp_log.h>#include "RBControl_encoder.hpp"#include "RBControl_manager.hpp"#include "RBControl_pinout.hpp"Namespaces | |
| rb | |
| The base namespace. Contains some logging functions, too. | |
Macros | |
| #define | TAG "RbEncoder" |
| #define | ENC_COUNT static_cast<int>(MotorId::MAX) |
| #define | PCNT_H_LIM_VAL 32767 |
| #define | PCNT_L_LIM_VAL (-32768) |
| #define | INC_PER_REVOLUTION 2 |
| #define | ESP_INTR_FLAG_DEFAULT 0 |
| #define | ENC_DEBOUNCE_US 20 |
| #define | MAX_ENGINE_PERIOD_US 100000 |
| #define | MIN_ENGINE_PERIOD_US 1000 |
Variables | |
| static const pcnt_unit_t | rb::PCNT_UNITS [ENC_COUNT] |
| const gpio_num_t | rb::ENCODER_PINS [ENC_COUNT *2] |
| #define ENC_COUNT static_cast<int>(MotorId::MAX) |
| #define ENC_DEBOUNCE_US 20 |
| #define ESP_INTR_FLAG_DEFAULT 0 |
| #define INC_PER_REVOLUTION 2 |
| #define MAX_ENGINE_PERIOD_US 100000 |
| #define MIN_ENGINE_PERIOD_US 1000 |
| #define PCNT_H_LIM_VAL 32767 |
| #define PCNT_L_LIM_VAL (-32768) |
| #define TAG "RbEncoder" |