Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Run #1

Open
groundwater opened this issue Nov 17, 2013 · 7 comments
Open

First Run #1

groundwater opened this issue Nov 17, 2013 · 7 comments

Comments

@groundwater
Copy link

Hey @morganrallen awesome work!

I gave the library a run on the Sphero and have a few issues I would like to work out before Wed.

  1. the time parameter for the .forward command does not seem to work unless I call .stop immediately after. This may or may not be the intention.
  2. is it possible to have .left and .right re-orient the ball while stationary, i.e. where the blue tail-light rotates without the ball rolling forward. I think kids may need the visual feedback.
  3. we may need a way to calibrate the ball in order to orient it's gird with the mazes grid. i.e. move the blue dot in a more continuous way before executing the maze script

Thanks so much for building this, I can already tell it's gonna be awesome!

@morganrallen
Copy link
Owner

I was messing around with auto-stopping and it resulted in very punchy movement. I have thought to add acceleration/deceleration ramping to smooth this out. This will probably result in lost of distance accuracy but will smooth out the movements.

I think I can provide stationary feedback by switching back to setHeading in left/right and always roll heading 0.

Lastly I will try turning stabilization off when not running a sequence, this should allow repositioning by hand, eliminating the need for a specific calibration step.

@groundwater
Copy link
Author

This all sounds great, I'll try it out when it's ready.

I wouldn't worry too much about jerky movements; I imagine the kids will not be varying the duration of any individual forward, rather they're more likely to issue .forward multiple times, so keeping each forward unit relatively uniform is probably easier for them to understand.

@morganrallen
Copy link
Owner

I thought about dropping the time all together. I'm going to try to smooth
out the stopping as it was really jarring then possibly make the time
optional. Will have a crack at it this afternoon.

On Mon, Nov 18, 2013 at 9:36 AM, Jacob Groundwater <notifications@github.com

wrote:

This all sounds great, I'll try it out when it's ready.

I wouldn't worry too much about jerky movements; I imagine the kids will
not be varying the duration of any individual forward, rather they're more
likely to issue .forward multiple times, so keeping each forward unit
relatively uniform is probably easier for them to understand.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-28719662
.

http://ithoughtyouweretherobot.com
Metal and Wire

http://nolonelyguineapigs.com/
Wandering and Rambling

http://morglog.org
Old and Neglected.

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP.js v.1.20121007
Comment: http://openpgpjs.org

xsBNBFG3btUBB/9+/WJNOSIuc/praKPaPOweqXV5s7PGRD+HAnNWF/19YAY3
AFtfeoelhhY4sMJoobTaJzcZojznZ1kl/7UuuYCnbJO3Z9kaSMVrVxEZMSLe
YmW8Hc4ZsTnl9f05DQFy8ABpAvMLmXJQXh63BbfzjFqNbSWQfLhrubSM2Elq
xmN6EsmRyAuEeYlSnal+Di2MlViohpCbbagE2D6AZTUECIamTib6+DuLG4XO
b4GGKHR9TXu2qS1VH6hqcvdEz2MDE5OqZzAnBgcF2dvcOdTk9gAOoR1T+qKj
IJtg2X0ETbxcPqEXQoXE8VrxN0MLT5JQKTg26+csU4P2w0rEWsUsJombABEB
AAHNJU1vcmdhbiBBbGxlbiA8bW9yZ2FucmFsbGVuQGdtYWlsLmNvbT7CwFwE
EAECABAFAlG3btwJEG9pFLKaVEfeAAD7hwf+K8LN/kfgi8GTRLiTcuM+hSbm
uAeiBY+VaJIQFLzoFlt8A0hBlLNPFNNmUDxdPrMErdHgZ7HtJW/6RANuBTti
5hr3EBguH1GQyK7BbUqJGvaEX4UNRej3uyX3ufXDsIB/3NsKaTyyu+SO0+Hv
Cn2DwmlfSXcPhoarx6Turizn/WwgtTN3tqrMWxxiCKWydLH5xYuz+23BLMdc
oF/zkbF+7ddFhmyfiFh4Ej9//tsfwPj2cACU3uLTrcwCo7IxUtkrqMF/fhlm
LEqjhzDDjq9v7GNWb/5xB2xgTaucJ7/ljuS8nPlZqwCI8NlTgSqC8nyVLyjS
yVtOzkItcS0UqyW1Mg==
=V/Ia
-----END PGP PUBLIC KEY BLOCK-----

@groundwater
Copy link
Author

I think that's a good idea. I think a great "unit-distance" would be the length of the sphero itself, so calling .forward once will move it forward one sphero-unit. It's easy enough to call .forward 50x if you really want to send it across the room, but I imagine the mazes will be relatively small in size.

@morganrallen
Copy link
Owner

That might be difficult to achieve. I'll see what I can do with some easing
functions.

On Mon, Nov 18, 2013 at 10:11 AM, Jacob Groundwater <
notifications@github.com> wrote:

I think that's a good idea. I think a great "unit-distance" would be the
length of the sphero itself, so calling .forward once will move it
forward one sphero-unit. It's easy enough to call .forward 50x if you
really want to send it across the room, but I imagine the mazes will be
relatively small in size.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-28722684
.

http://ithoughtyouweretherobot.com
Metal and Wire

http://nolonelyguineapigs.com/
Wandering and Rambling

http://morglog.org
Old and Neglected.

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP.js v.1.20121007
Comment: http://openpgpjs.org

xsBNBFG3btUBB/9+/WJNOSIuc/praKPaPOweqXV5s7PGRD+HAnNWF/19YAY3
AFtfeoelhhY4sMJoobTaJzcZojznZ1kl/7UuuYCnbJO3Z9kaSMVrVxEZMSLe
YmW8Hc4ZsTnl9f05DQFy8ABpAvMLmXJQXh63BbfzjFqNbSWQfLhrubSM2Elq
xmN6EsmRyAuEeYlSnal+Di2MlViohpCbbagE2D6AZTUECIamTib6+DuLG4XO
b4GGKHR9TXu2qS1VH6hqcvdEz2MDE5OqZzAnBgcF2dvcOdTk9gAOoR1T+qKj
IJtg2X0ETbxcPqEXQoXE8VrxN0MLT5JQKTg26+csU4P2w0rEWsUsJombABEB
AAHNJU1vcmdhbiBBbGxlbiA8bW9yZ2FucmFsbGVuQGdtYWlsLmNvbT7CwFwE
EAECABAFAlG3btwJEG9pFLKaVEfeAAD7hwf+K8LN/kfgi8GTRLiTcuM+hSbm
uAeiBY+VaJIQFLzoFlt8A0hBlLNPFNNmUDxdPrMErdHgZ7HtJW/6RANuBTti
5hr3EBguH1GQyK7BbUqJGvaEX4UNRej3uyX3ufXDsIB/3NsKaTyyu+SO0+Hv
Cn2DwmlfSXcPhoarx6Turizn/WwgtTN3tqrMWxxiCKWydLH5xYuz+23BLMdc
oF/zkbF+7ddFhmyfiFh4Ej9//tsfwPj2cACU3uLTrcwCo7IxUtkrqMF/fhlm
LEqjhzDDjq9v7GNWb/5xB2xgTaucJ7/ljuS8nPlZqwCI8NlTgSqC8nyVLyjS
yVtOzkItcS0UqyW1Mg==
=V/Ia
-----END PGP PUBLIC KEY BLOCK-----

@morganrallen
Copy link
Owner

Got two of the three looking pretty good. Instant feedback of direction by using setHeading and roll(0)*
And added easing to get better control of the speed. Currently one forward will travel about 10cm pretty consistently. Let me know what you think.

@morganrallen
Copy link
Owner

Oh, the * from roll(0) is that the API ref says after using setHeading heading 0 will be forward. This isn't always the case. I was consistently having it still 90° off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants