PWM Servo Ramping icon PWM Servo Ramping Smoothly ramps PWM servos on EZB D0-D23 via Vx-to-Dx mapping for natural, gradual motion without snapping. Try it →
 

Getfinetuneoffset

getFineTuneOffset(port, ezbIndex)

Parameters

port - Servo port (i.e. d0 v2
ezbIndex - The ezb to apply this offset value (optional)

Description

Gets the global fine-tuned offset in positions of the specified servo. The value is set by either loading a fine tune servo profile or calling setServoFileTune()

One of the uses for this could be used to maintain servos upright from an IMU, such as in this post.

Example

// Get the servo D0 offset and print it to the output
print("The offset of D0 is " + getFineTuneOffset(D0));