GithubHelp home page GithubHelp logo

Comments (8)

deadprogram avatar deadprogram commented on May 28, 2024

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.

zachfeldman avatar zachfeldman commented on May 28, 2024

Yeah, that's definitely how you do it on the iPhone - the only problem is that you'd have to:

  1. Pair with your iphone
  2. Orient the sphero
  3. unpair with your iphone
  4. pair with your laptop/let Artoo do so
  5. run program

Rather than, perhaps:

  1. Run program with command that shows where sphero is oriented, turn sphero to orient, you have x seconds to orient
  2. 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.

deadprogram avatar deadprogram commented on May 28, 2024

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.

solojavier avatar solojavier commented on May 28, 2024

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.

deadprogram avatar deadprogram commented on May 28, 2024

Perfect!

from artoo-sphero.

solojavier avatar solojavier commented on May 28, 2024

So @zachfeldman you could try that command...

from artoo-sphero.

zachfeldman avatar zachfeldman commented on May 28, 2024

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 methodstart_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

'", "/Users/zachfeldman/.rvm/gems/ruby-2.1.0/gems/artoo-1.8.0/lib/artoo/robot.rb:214: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.

solojavier avatar solojavier commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.