15 float storedPosition = 0.0f;
17#ifdef SAFETY_CHECKS_ENABLED
18 static inline detail::PortRegistry registry_{};
20 static void registerServoPort(
int port);
22 static void unregisterServoPort(
const int port);
void disable() const
Disable output while preserving the last commanded position.
void enable() const
Enable output while preserving the last commanded position.
void setSmoothPosition(float targetDeg, float speedDegPerSec, int easing)
Command a smooth move to targetDeg at the given speed; interpolation runs in the C++ reader.
Servo(int port)
Create a servo bound to a platform-defined port index.
void setPosition(float position)
Command a new servo position in degrees (0-180).
float getPosition() const
Return the last commanded position in degrees.
static void fullyDisableAll()
Force every servo into the platform's fully disabled state.