![]() |
QPIDfirmware
v0.1
Object oriented firmware for autonomous motor drivers with encoder based PID controller and flexible interface
|

Functions | |
| void | QPID_Encoder_ESP32::init (double t, uint8_t a, uint8_t b, encType type) |
| attach ESP32Encoder to pins and clear position to 0 More... | |
####
A list of message commands understood by ESP32 hardware encoders.
A list of message commands understood by ESP32 hardware encoders. ###
| void QPID_Encoder_ESP32::init | ( | double | t, |
| uint8_t | a, | ||
| uint8_t | b, | ||
| encType | type | ||
| ) |
attach ESP32Encoder to pins and clear position to 0
Init message. Takes five paramters:
| t | ticks per revolution |
| a | encoder pin 1 |
| b | encoder pin 2 |
| type | 'full' quad, 'half' quad or 'single' pulse (cf. encType from ESP32Encoder.h). Note that ESP32Encoder's 'full' and 'half' are a bit misleading, 'full' will generate a tick for each flank, 'half' fof two subsequent flanks, so that 'full' will generate twice as much ticks as 'half' mode. |