Timeline for Controlling Unity 3D cube with remote gyroscope
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 17, 2020 at 13:19 | vote | accept | erik | ||
Apr 14, 2020 at 15:53 | answer | added | DMGregory♦ | timeline score: 1 | |
Apr 14, 2020 at 14:32 | comment | added | erik |
Yep, very good point. I was under the impression I'd only need the gyro so I disabled the others. Is there a straightforward change of frame I can do from the values coming out of get_orientation ?
|
|
Apr 14, 2020 at 13:14 | comment | added | DMGregory♦ |
Notice that this method disables the accelerometer and magnetometer. For a more accurate/stable orientation estimate, it looks like you want to useget_orientation() or get_orientation_degrees() instead.
|
|
Apr 14, 2020 at 13:13 | history | edited | erik | CC BY-SA 4.0 |
added 283 characters in body
|
Apr 14, 2020 at 13:11 | comment | added | erik |
So this is just a Python library specific to the Sense Hat with a single line call (get_gyroscope() ), where the separate roll/pitch/yaw values come back in a dictionary object.
|
|
Apr 14, 2020 at 2:30 | comment | added | DMGregory♦ | That helps. What specific API are you getting these angle values from? | |
Apr 14, 2020 at 2:28 | comment | added | erik | There is a magnetometer as well, is this figure what you're looking for in terms of the coord system? deviceplus.com/wp-content/uploads/2017/06/image6.jpg | |
Apr 13, 2020 at 23:10 | comment | added | erik | Regarding the coordinate system I'll need to dig further (raspberrypi.org/documentation/hardware/sense-hat), but there is an accelerometer I can also query. | |
Apr 13, 2020 at 23:04 | comment | added | DMGregory♦ | Do you also have an accelerometer or magnetometer you can use to correct for drift in the gyroscope reading, via sensor-fusion? What coordinate system are your output values in? We'll need details on that coordinate system to be able to accurately convert it to Unity's. | |
Apr 13, 2020 at 22:52 | history | asked | erik | CC BY-SA 4.0 |