Pymavlink change flight mode error

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.

Hi Ryan,

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

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 .

solved by this post

thanks

1 Like