Speech Synthesis icon Speech Synthesis Speak user-defined text via PC audio or EZ-B v4 speaker; configurable voices, effects and speed; uses Windows TTS; programmatically callable. 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));