Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ We've also created a Sphero CLI for the Make Day so if you want to have a look a

* `sphero.connect`: Connects to Sphero. All your code goes inside this function.

* `sphero.roll`: Takes two arguments - distance (unitless) and direction (in degrees). The direction you specify is clockwise relative to the x-axis - see the image below:
* `sphero.roll`: Takes two arguments - speed (unitless) and direction (in degrees). The direction you specify is clockwise relative to the x-axis - see the image below:
<img src="assets/clockwise_rotation.png" width="150" height="150" />
* To calculate distance with the sphero you will have to use the formala distance = speed x time or d = st
* [Refer to this link for distance time speed explanations](http://www.softschools.com/formulas/physics/distance_speed_time_formula/75/)

* `sphero.setColor`: Takes a string with the color as argument. In lower-case, e.g. "blue", "red", "green", etc.

Expand Down Expand Up @@ -53,4 +55,4 @@ We've also created a Sphero CLI for the Make Day so if you want to have a look a
In `sphero.js` there are the following files of note:
* In `/lib/commands`: `core.js` and `sphero.js`
* `/lib/devices`: `core.js`, `custom.js` and `sphero.js`
* -->
* -->