omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Using the roll and pitch

    Pythonista
    2
    6
    3284
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • reefboy1
      reefboy1 last edited by

      Is there a way to access the roll and pitch??by this I mean the tilting of the devise

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by

        Yes... motion.get_attitude() returns the attitude of the device (roll, pitch, yaw).

        1 Reply Last reply Reply Quote 0
        • reefboy1
          reefboy1 last edited by

          Ok, thank you.

          1 Reply Last reply Reply Quote 0
          • reefboy1
            reefboy1 last edited by

            Say if I tilt up or down, is it possible to have that print something that always appears when I tilt up or down?

            1 Reply Last reply Reply Quote 0
            • ccc
              ccc last edited by

              Yes. Pitch is probably the value that you should be looking at. To see how these values change in realtime, check out tilting_color.py at https://github.com/cclauss/Pythonista_scene

              1 Reply Last reply Reply Quote 0
              • reefboy1
                reefboy1 last edited by

                That's really cool! I'm trying to make a flight simulator, and that's why I was asking ... Any suggestions? In trying to make the Abe react to the tilting of the devise

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB Forums | Contributors