alduxvm / pyMultiWii

MultiWii Serial Protocol (MSP) API to send and receive data from firmware using MSP
GNU General Public License v3.0
154 stars 85 forks source link

SPracing F3 V1 flight controller #22

Closed jasonkurohara closed 5 years ago

jasonkurohara commented 6 years ago

I am trying to read raw IMU data from a SPracing F3 V1 flight controller, but I can't seem to get any data on my Rasberry pi. Looping the getData function returns "None". Any advice? I made sure I have the correct drivers. Thanks.

alduxvm commented 6 years ago

ok, did you tried ATT first? does that one works?

jasonkurohara commented 6 years ago

What is ATT? Thank you!

alduxvm commented 6 years ago

Attitude

jasonkurohara commented 6 years ago

I was unable to get either readings .

On Fri, Aug 10, 2018, 2:07 PM Aldo Vargas notifications@github.com wrote:

Attitude

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alduxvm/pyMultiWii/issues/22#issuecomment-412206706, or mute the thread https://github.com/notifications/unsubscribe-auth/AfXpnmeU8i532Hj7_a9t-NsJunqcDpCFks5uPfYUgaJpZM4Vvjqb .

nicolas-coulon commented 6 years ago

I have the same issue.

from pymultiwii import MultiWii
import time

serialPort = "/dev/ttyACM0"
board = MultiWii(serialPort)
while True:
    board.getData(MultiWii.ATTITUDE)
    print(board.attitude)
    time.sleep(0.1)

Attitude works with Betaflight Configurator: 10.4.0 Firmware: BTFL 3.2.0 (Target: OMNI)

nicolas-coulon commented 6 years ago

For me it's working now, I used python 3.6.5. It's working with python 2.7

jasonkurohara commented 6 years ago

Great! I'll give it a shot.