Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    pytrack accelerometer pitch/yaw/roll read wrong values

    Scheduled Pinned Locked Moved Getting Started
    pytrackaccelerometerbug
    3 Posts 2 Posters 2.0k Views 3 Watching
    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.
    • O Offline
      ozeta
      last edited by

      Hi, I'm playing with the wipy2 + pytrack. both updated to the lastest firmware.

      I used the turorial script from github to get the accelerometers data in a while loop:

      while True:
          print("{} {:>10.3} {:>10.3} {:>10.3} ".format(li.acceleration(), li.pitch(), li.yaw(), li.roll()))
          utime.sleep_ms(500)
      

      I think I got some bugged response

      laying on the bench it seems all regular:

      (-0.015625, -0.0007324219, 1.014038)      0.884    -0.0414     -0.883
      (-0.01708984, 0.001098633, 1.014404)      0.967      0.062     -0.965  
      

      but if I roll the pytrack, both pitch and roll reads some values:

      (0.9797363, -0.1525879, -0.07019043)        -86      -8.83       80.3
      (1.001099, -0.1734619, -0.1179199)      -83.4      -9.76       78.2 
      

      if I pitch the pytrack, pitch and yaw reads some values:

      (-0.03173828, 0.994873, -0.08068848)      -85.4         85      -1.82
      (-0.01452637, 0.9941406, -0.07385254)      -85.8       85.7     -0.835
      

      if i yaw the pytrack ( Holding it vertically), it's pitch and yaw again

      (0.1431885, -1.013672, 0.03063965)       88.3      -81.8       8.04
      (0.1501465, -1.015625, 0.03515625)         88      -81.4        8.4   
      

      but if i turn it 90°, yaw decreases and roll increases:

      (-0.9949951, -0.1469727, -0.04418945)      -87.5      -8.39      -81.2  
      (-0.9726563, -0.09790039, -0.04040527)      -87.6      -5.74      -83.8 
      

      is that a known bug or I do I have to parse the output data or else?

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        livius @ozeta
        last edited by

        @ozeta
        what i your firmware version?

        os.uname()
        

        \and what is your file version 2 or 3?
        pytrack_0.0.3.dfu

        and do you updated libreries?
        https://github.com/pycom/pycom-libraries

        think about people first, then computers

        O 1 Reply Last reply Reply Quote 0
        • O Offline
          ozeta @livius
          last edited by ozeta

          @livius

          os.uname()                                                                                                          
          (sysname='WiPy', nodename='WiPy', release='1.7.5.b2', version='v1.8.6-694-g25826866 on 2017-06-29', machine='WiPy with E
          SP32')   

          pytrack firmware: pytrack_0.0.3.dfu

          yes I git-pulled the lastest library

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom