Calibrate left leg () right leg () left foot () right foot () is a stack block available in Humanoid Robot extension for evive and other Arduino boards. This block should be included every time you work with the humanoid robot for the first time as it calibrates the angles of all the four servo motors of leg(2 servos of legs + 2 servos of feet) and saves the angles in the memory of evive.
Input Parameters
- Enter the error angle of the left leg servo.
- Enter the error angle of the right leg servo.
- Enter the error angle of the left foot servo.
- Enter the error angle of the right foot servo.
Example
Here, in the given script, we’ll be calibrating both the legs of the humanoid robot i.e. two servos of legs and two servos of feet before working it. Write the script given below to calibrate it. Run the script by clicking on the green flag. If the humanoid robot is straight, keep the angles as 0° in the calibrate angles blocks. If it is not straight, then change their respective values and run the script. Use the trial and error method to calibrate the servos.
Run the script every time you calibrate a part.