Device orientation within a range?
Posted: 20 Aug 2014 17:25
I know we can trigger and condition using the preset values for device orientation. Is it possible to set up a condition/expression so that if we have defined a maximum value for azimuth/pitch/roll and a minimum, then we test to see if we've fallen into that range?
I'm aiming to determine when I've got my phone resting on various mounts (desk cradle, car mount, etc) and then behave accordingly. I have two sets of min/max, but I do not see a clear way to test if I'm between them since I'm dealing with both positives and negatives.
Perhaps there is a setting to adjust the sensitivity of the predefined values instead?
I'm aiming to determine when I've got my phone resting on various mounts (desk cradle, car mount, etc) and then behave accordingly. I have two sets of min/max, but I do not see a clear way to test if I'm between them since I'm dealing with both positives and negatives.
Code: Select all
19.08.2014 12:12:14.248 [Flow4] Action 'Init Variables Device Orientation: in azimuth pitch roll' Measured azimuth=1.8208153547798112, pitch=1.0245795449671986, roll=72.01081992092307
19.08.2014 12:12:02.609 [Flow4] Action 'Init Variables Device Orientation: in azimuth pitch roll' Measured azimuth=344.03620128529883, pitch=339.1025039217734, roll=56.276156145297065