Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

Access to heading value from BB8 ? #62

Open
reidakdumont opened this issue Feb 5, 2016 · 5 comments
Open

Access to heading value from BB8 ? #62

reidakdumont opened this issue Feb 5, 2016 · 5 comments

Comments

@reidakdumont
Copy link

Hi,

Is it possible to have access to the heading value of bb8 ? I search for this functionality but I find nothing to get it and it could be useful to have it.

Thanks

@deadprogram
Copy link
Contributor

It is typical to use the Inertial Measurement Unit (IMU) for this info. Please check out the example code https://github.com/orbotix/sphero.js/blob/master/examples/stream-imu-angles.js

Hope that helps!

@reidakdumont
Copy link
Author

Hi deadprogram,

yes it helped me but now I have a little issue because the add of the call to streamImuAngles add some sort of lag in the command executing for bb8. Do you know if there is a solution to decrease the framerate of sending data to minimize the add of lag ?

Thanks

@deadprogram
Copy link
Contributor

Perhaps you want to play with different values for the timeout value for sending commands. For example:

var bb8 = new Sphero("F3:F2:6D:55:71:09", { timeout: 300 });

Hope that helps!

@deadprogram
Copy link
Contributor

From now on, I am going to use "HTH" for "Hope that helps!" to save on bytes. :P

@deadprogram
Copy link
Contributor

Hi, @reidakdumont did changing the timeout value help you? Please let us know.

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

No branches or pull requests

2 participants