This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

How to add Inclination tool using plus sign for designing an experiment.
Sorry, if this may seem a bit out of context, but Praveen contacted me with via email about your usecase and also pointed me to this thread. So, I am mostly here to post a QR code with multiple options. But let me quickly point out that the original inclination experiment only keeps one original value for each axis and the raw timestamp from the sensor. It then appends these time stamps to the actual list of values that are to be displayed when it calculates the angle. It does so to avoid unnecessary recalculations of the entire measurement, but this can also make things complicated if you change the data rate (because now it is limited by the analysis rate) and if you add another sensor, which is not synchronized by default and would have its own timestamps.

Now, since I also suggested to Praveen to also try the "attitude" sensor (a virtual sensor provided by the manufacturer of the phone, combining accelerometer, gyroscope and often the magnetometer to get an absolute angle, see, I have attached a configuration with attitude, the inclination method from phyphox (just the atan of the accelerometer axes), the accelerometer and the gyroscope.

Note that the Euler angles use the common names used in aviation, but with the heading towards x and z being up. On a phone this is very unintuitive, because the equivalent to the inclination is now "yaw". But you will probably figure out the axes and if you are done testing and need a simplified and properly named version for students, I can simply provide one.

Also note that I made the average period for the inclination adjustable, because this really depends on your use case and if you also need the gyroscope I assume that the original setting would be too slow for you (again, something we can fixate once you know what you need/prefer). Unfortunately, it is not easy to provide accelerometer and gyroscope at maximum rate while providing averaging, so this might be a bit inefficient. If you are having trouble with phyphox or the measurement becoming unresponsive (especially if you lower the average period), let me know. In that case we should work with a fixed rate instead.

Attached Files
.phyphox   attitude-and-inclination.phyphox (Size: 15.99 KB / Downloads: 107)

Messages In This Thread
RE: How to add Inclination tool using plus sign for designing an experiment. - by Sebastian Staacks - 06-26-2023, 12:52 PM

Forum Jump: