From 5b7ff126014febd37cf392c131606b01b8e2ad7a Mon Sep 17 00:00:00 2001 From: Masami Yamakawa Date: Mon, 25 Mar 2013 22:04:32 +0900 Subject: [PATCH] Use fully qualified constant names --- public/help/en/robots/sphero_commands.html | 8 ++++---- public/help/shared/robots/code1_1.rb | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/public/help/en/robots/sphero_commands.html b/public/help/en/robots/sphero_commands.html index 1116929..61e4760 100644 --- a/public/help/en/robots/sphero_commands.html +++ b/public/help/en/robots/sphero_commands.html @@ -56,19 +56,19 @@

ping

Pings Sphero to see if it is responding

-

FORWARD

+

Sphero::FORWARD

A constant value, same as 0

-

BACKWARD

+

Sphero::BACKWARD

A constant value, same as 180

-

RIGHT

+

Sphero::RIGHT

A constant value, same as 90

-

LEFT

+

Sphero::LEFT

A constant value, same as 270

There are more commands, but these are the most important. For more information, take a look at the Sphero gem documentation on Github.

diff --git a/public/help/shared/robots/code1_1.rb b/public/help/shared/robots/code1_1.rb index 81d6490..49edaa4 100644 --- a/public/help/shared/robots/code1_1.rb +++ b/public/help/shared/robots/code1_1.rb @@ -1,17 +1,17 @@ require 'sphero' Sphero.start '/dev/tty.Sphero-YBW-RN-SPP' do - roll 60, FORWARD + roll 60, Sphero::FORWARD keep_going 3 - roll 60, RIGHT + roll 60, Sphero::RIGHT keep_going 3 - roll 60, BACKWARD + roll 60, Sphero::BACKWARD keep_going 3 - roll 60, LEFT + roll 60, Sphero::LEFT keep_going 3 stop -end \ No newline at end of file +end