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
Roll, pitch and yaw sliders in GUI have no effect #19
Comments
Further investigation suggests that the problem is in def set_orientation(self, orientation, position=None):
assert self.simulate_world
if position is None:
position = O
self._orientation = V(*orientation)
self._position = V(*position) If I change |
Weird - with a checkout from the v1.0 tag, I can't reproduce, but I can with the released version. Not sure what's going on there (whether the version in the Raspbian repos was built from an earlier commit - the v1.0 tag is slightly after where I committed the bump in changelog). Anyway, it seems to be fixed in master and it's about time I did a release anyway to get the resizing version out there (was hoping to get time to add fuzzing to the orientation emulation, but that's not happened yet), so I'll get that done shortly. |
Ah, slightly more complex than I thought: depends on the state of the IMU simulation. If perturbed emulation is enabled ("Simulate ... Internal measurement unit" in preferences) then it works, otherwise it fails - that's why it appears to work in some cases but not others (also because the default for the preferences is hardware dependent). Don't think the fix is too complex though - should have it sorted out shortly. |
Has anything happened on this? It's over a year since I reported it, and a year and a half since the last commit to this repo, so I'm guessing not? Could we please have a fix asap? We are in the process of preparing documentation for this application, and the fact that it doesn't work properly will become obvious! |
I've spoken to @waveform80 about this and he's going to try to fix it shortly:
|
My reading of the code is that the roll, pitch and yaw sliders should change values in
/dev/shm/rpi-sense-emu-imu
, specifically the last three pairs of bytes in the file.Moving the sliders has no effect on these bytes; they stay at zero no matter what the sliders are set to.
The effect of this can be seen in the python code:
If this code is run and the pitch slider is moved, the value on the console never changes from 0.0.
Running the same code with e.g.
sense.get_temperature()
shows the temperature value changing as expected with the slider; it only seems to be the roll, pitch and yaw sliders which have no effect.The text was updated successfully, but these errors were encountered: