Orientation Sensor vs. Clock

34 views
Skip to first unread message

AiNick C

unread,
Jul 20, 2015, 11:03:07 PM7/20/15
to mitappinv...@googlegroups.com

Hello Inventors,
I'm working on a Maze game and was using an orientation sensor for movement of the ball on my Samsung 10.5 Tab S
 
and all was well. 

I went to download onto my S4 phone and discovered that the x Axis was very very jerky and not really movable.. 

anyway, I put a clock on the X Axis movement  and took out the roll movement from the sensor and all works well.

I'm a little curious as to why the sensor didn't work well with my phone.?

also curious as to how does the ball know to go left when I tilt the device when the X-Axis movement is on a timer?
MazeOrientation2.aia
Orientation Sensor with Clock.png

Taifun

unread,
Jul 21, 2015, 10:07:03 AM7/21/15
to mitappinv...@googlegroups.com
I'm a little curious as to why the sensor didn't work well with my phone.?
most probably the OrientationChanged event fired too often? using a clock as you did you can change the frequency using a slower timer interval

also curious as to how does the ball know to go left when I tilt the device when the X-Axis movement is on a timer?
isn't that not what you are doing in your blocks in the X_AxisClock.Timer event?

use Do it to debug your blocks, see tip 4 here

Taifun
Reply all
Reply to author
Forward
0 new messages