Providing the capability to interpret your commands and have your robot initiate an action
Now that your robot can both speak and listen, let's see if you can make it respond to your commands.
Prepare for lift off
Now that the system can both hear and speak, you want to provide the capability to respond to your speech and execute some commands based on the speech input. Now you're going to configure the system to respond to simple commands.
Engage thrusters
In order to respond, you're going to edit the continuous.c
code in the /home/ubuntu/src/programs
directory. You could create your own C file, but this file is already set up in the makefile system and is an excellent starting spot. I like to make a copy of the current file into continuous.c.old
, so I can always get back to the starting program if it is required. Then you will need to edit the continuous.c
file. It is very long and a bit complicated, but you are specifically looking for the following section in the code:
In this section of...