Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
rizal72 committed Jan 23, 2017
1 parent ac4347c commit be602a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cvc/cozmo_voice_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def listen(robot: cozmo.robot.Robot):
if found_command:
cprint("Action command recognized: " + str(found_command), "green")
cmd_funcs, cmd_args = extract_commands_from_string(recognized) #check if a corresponding command exists
executeComands(robot, cmd_funcs, cmd_args)
executeCommands(robot, cmd_funcs, cmd_args)
else:
cprint("You did not say the magic word: " + commands_activate[0], "red")
if robot:
Expand All @@ -202,7 +202,7 @@ def listen(robot: cozmo.robot.Robot):
cprint("Timeout...", "red")
prompt()

def executeComands(robot: cozmo.robot.Robot, cmd_funcs, cmd_args):
def executeCommands(robot: cozmo.robot.Robot, cmd_funcs, cmd_args):
if robot:
vc.check_charger(robot,distance=70)
for i in range(len(cmd_funcs)):
Expand Down

0 comments on commit be602a1

Please sign in to comment.