RBCX
Library for the RB3204-RBCX board with the ESP32 by RoboticsBrno.
Loading...
Searching...
No Matches
RBCXPinout.h
Go to the documentation of this file.
1#pragma once
2
3#include <driver/adc.h>
4#include <driver/gpio.h>
5
6namespace rb {
7
8enum class MotorId : uint8_t {
9 M1,
10 M2,
11 M3,
12 M4,
13
14 MAX,
15};
16
19 return x = MotorId(static_cast<uint8_t>(x) + 1);
20}
21
24 return x = MotorId(static_cast<uint8_t>(x) - 1);
25}
26
27static constexpr int UltrasoundsCount = 4;
28static constexpr int StupidServosCount = 4;
29
30} // namespace rb
Definition: RBCXAngle.cpp:3
static constexpr int StupidServosCount
Definition: RBCXPinout.h:28
static constexpr int UltrasoundsCount
Definition: RBCXPinout.h:27
MotorId operator--(MotorId &x)
Definition: RBCXPinout.h:23
MotorId
Definition: RBCXPinout.h:8
@ MAX
Maximal motor ID.
@ M4
Motor 4.
@ M2
Motor 2.
@ M3
Motor 3.
@ M1
Motor 1.
MotorId operator++(MotorId &x)
Decrements the motor ID.
Definition: RBCXPinout.h:18