Expand description
Utility functions for servo calculations.
These functions are independent of ServoConfig and can be tested in isolation.
Constants§
- EPSILON
- Epsilon value for floating-point comparisons.
Functions§
- angle_
to_ duty - Transforms angle in degrees to absolute duty value.
- approx_
eq - Checks if two duty values are approximately equal.
- calc_
duty_ range - Calculates duty range in absolute values for given servo configuration.
- duty_
to_ angle - Transforms absolute duty value to angle in degrees.