Instructions Circuit Diagram
- 84 -
vMoveBody(0,10);
Reset the feet-servo for the YETI body to an inital position, resulting in
an upright body position for the robot.
A similar function ‘vMoveLegs()’ will activate YETI’s legs forward and/or
backward.
YETI starts walking
#This program will activate YETI to walk 3 steps forward.
#include“YETI.h” //loaddenitionsandfunctions
#include “yetimove.c” //insert YETI’s servo functions
int main(void){ //main function entry
vInitYeti(); //initialize all microprocessor modules in
//the YETI
vMoveForwardXSteps(3); //YETI will march forward 3 steps
vStandUpright(); //makes YETI stand upright
return 0; //terminating the main function
} //end of the main function
vMoveForwardXSteps(3);
YETI will march forward 3 steps. Whenever YETI starts from an upright
position, it will always start putting its right foot forward.
vStandUpright();
Makes YETI stand upright