Comments (8)
As I recall from having used it, that option requires you look and use a widget on the iphone to cause the Sphero to turn till the tail light is pointed towards you.
from artoo-sphero.
Yeah, that's definitely how you do it on the iPhone - the only problem is that you'd have to:
- Pair with your iphone
- Orient the sphero
- unpair with your iphone
- pair with your laptop/let Artoo do so
- run program
Rather than, perhaps:
- Run program with command that shows where sphero is oriented, turn sphero to orient, you have x seconds to orient
- run rest of program
Do you think the second one is possible in your research thus far? Happy to look into it myself too! Thanks @deadprogram .
from artoo-sphero.
We have some code to help orient Sphero in Cylon.js located here: https://github.com/hybridgroup/cylon-sphero/blob/master/lib/driver.js#L86-L101
Someone just needs to port this to artoo-sphero... ;)
from artoo-sphero.
We already have it in dev branch: https://github.com/hybridgroup/artoo-sphero/blob/dev/lib/artoo/drivers/sphero.rb#L129 @deadprogram
from artoo-sphero.
Perfect!
from artoo-sphero.
So @zachfeldman you could try that command...
from artoo-sphero.
Thanks @solojavier and @deadprogram ! I checked out the dev branch and just tried it out. I get:
, [2014-08-14T17:20:02.979809 #16177] INFO -- : Starting driver 'Artoo::Drivers::Sphero'... E, [2014-08-14T17:20:02.980884 #16177] ERROR -- : undefined method
start_calibration' for #<Device @id=2169422560, @name='name', @driver='Artoo::Drivers::Sphero'>
E, [2014-08-14T17:20:02.980998 #16177] ERROR -- : ["/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/calls.rb:30:in check'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/calls.rb:24:in
dispatch'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/calls.rb:63:in dispatch'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/cell.rb:60:in
block in invoke'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/cell.rb:71:in block in task'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/actor.rb:357:in
block in task'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/tasks.rb:57:in block in initialize'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/tasks/task_fiber.rb:15:in
block in create'", "(celluloid):0:in remote procedure call'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/calls.rb:92:in
value'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/proxies/sync_proxy.rb:33:in method_missing'", "sphero.rb:12:in
block in
instance_eval'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/artoo-1.8.0/lib/artoo/robot.rb:214:in
execute_working_code'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/artoo-1.8.0/lib/artoo/robot.rb:71:in work'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/calls.rb:26:in
public_send'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/calls.rb:26:in dispatch'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/calls.rb:122:in
dispatch'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/cell.rb:60:in block in invoke'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/cell.rb:71:in
block in task'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/actor.rb:357:in block in task'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/tasks.rb:57:in
block in initialize'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/celluloid-0.16.0.pre3/lib/celluloid/tasks/task_fiber.rb:15:in block in create'"]
from artoo-sphero.
We have just pushed version 1.5.0 of artoo-sphero gem which includes that capability... could you try updating and trying again?
from artoo-sphero.
Related Issues (9)
- License missing from gemspec
- Trouble with Artoo Sphero and OSX HOT 8
- Could not find command "scan" HOT 3
- Support of MS-Windows HOT 3
- undefined method `configure_collision_detection' HOT 2
- does this work with the starwars BB-8 model? HOT 3
- jruby - artoo connect serial not listening on port HOT 5
- More object oriented API? (Documentation) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artoo-sphero.