sphero.js icon indicating copy to clipboard operation
sphero.js copied to clipboard

Access to heading value from BB8 ?

Open reidakdumont opened this issue 9 years ago • 5 comments
trafficstars

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

reidakdumont avatar Feb 05 '16 13:02 reidakdumont

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!

deadprogram avatar Feb 05 '16 17:02 deadprogram

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

reidakdumont avatar Feb 08 '16 15:02 reidakdumont

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 avatar Feb 10 '16 17:02 deadprogram

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

deadprogram avatar Feb 10 '16 17:02 deadprogram

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

deadprogram avatar Feb 25 '16 18:02 deadprogram