
109Chapter 6: Intermediate Inverse Kinematics
This latest version of our code should look very
familiar. In fact, all we’ve done is add six lines of
code. We have two variables creating our servo
variables, two variables attaching our servos to our
pins, and our final two lines of code, which tell our
servos to move to the variables being determined by
our inverse-kinematics calculations. With that, we
are now able to input whatever coordinates we want,
and our system will calculate the angles required to
get us there.
So is that it? Not even close! Now that we have put
our system in place, we can make our robotic arm
do all kinds of awesome things. ...