Android Question Phone Sensor Orientation x starting point

Discussion in 'Android Questions' started by Scantech, Jun 24, 2019.

  1. emexes

    emexes Well-Known Member Licensed User

    I don't know, but it would not surprise me if (some) tablets regarded landscape orientation as normal, and the accelerometer axes were oriented accordingly.

    And if you're running an emulator, all bets are off ;-)

    On a related note: in my bang-it-up-fast code, I used orientation values 8,9,6,3,2,1,4,7 arranged as per numeric keypad, but in retrospect, would be better just using degrees (or multiples of 45 or 90 degrees).
     
    Scantech likes this.
  2. emexes

    emexes Well-Known Member Licensed User

    Updated to include Onix AT9-014 tablet running Android 4.4.2 (locked to portrait mode, ironically).

    Code:
    device   phone      tablet
    angle   x    y      x    y

    -
    135    7   -7      7    7
     -
    90   10    0      0   10     landscape, tilted to left (anticlockwise)
     -
    45    7    7     -7    7
       
    0    0   10    -10    0     portrait
      
    45   -7    7     -7   -7
      
    90  -10    0      0  -10     landscape, tilted to right (clockwise)
     
    135   -7   -7      7   -7
    Accelerations in metres-per-second-per-second, where earth's gravity is (close enough to) 10. Hallelujah! One small step in the long journey of dragging youse Yanks towards the glorious coherence of SI ;-)[/QUOTE]
     
    Last edited: Jun 28, 2019
    Scantech likes this.
  3. emexes

    emexes Well-Known Member Licensed User

    Speaking of ironic, yesterday happened upon this map.

    "At this time, only three countries—Burma, Liberia, and the US—have not adopted the International System of Units (SI, or metric system) as their official system of weights and measures."

    The "Axis of Medieval" reference was kinda funny (although that might just be my weird humour, juxtaposing it with George W Bush and his Axis of Evil).

    [​IMG]
     
    Scantech likes this.
  4. emexes

    emexes Well-Known Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice