Home        Store        Docs        Blog

Pymavlink change flight mode error

ardusub
pymavlink

(Ryan Febriansyah) #1

Hello,
im working on my AUV project now,
i was sending mavlink code from my raspberry pi to companion raspberry pi, but when i changed flight mode with mavlink code there is an error:

Traceback (most recent call last):
File “tes.py”, line 14, in
mode_id = master.mode_mapping()[mode]
TypeError: ‘NoneType’ object has no attribute ‘getitem

the rest of mavlink code work fine without it.

thanks.


(Patrick José Pereira) #2

Hi Ryan,

I just tested with pymavlink 2.3.4 and it’s working fine.
Please update your module with pip install --upgrade pymavlink.


(Ryan Febriansyah) #3

thanks for the reply,
but i still have some problem with the pymavlink library .
when i tried to update my module with this command
pip install --upgrade pymavlink .


(Ryan Febriansyah) #4

solved by this post

thanks