This C++ library provides a simple class that represents a servo motor, which can linearly calibrate itself by just getting measured angles and their PWM values.
It supports ESP-IDF and linux cmake projects out-of-the-box. just include the library name CalServo.
PCA9685 library is required for interfacing with the servo.