Using pymavlink to connect to a ANAFI USA Parrot drone. I see this is possible and supported.
When creating the env I have followed the instructions in the quick start guide. However, when I copy in the sample connection code I'm noticing that the package recognizes the connection line, but subsequent lines for wait_heartbeat() and target_system/component are undefined (appear as white)
If I run the code the terminal just hangs until I force terminate with ctrl+c
I tried just using the connection line by itself in a try/except and it did work, but not the rest of the code. I also confirmed I'm using the correct IP for the drone.
I see the functions defined when I inspect pymavutil but for some reason there is no suggested methods when using dot-notation on the_connection.
However, I can get it to recognize wait_heartbeat() if I use mavutil.makefile.wait_heart() - which doesn't work as it expects an argument.
Can anyone help clarify what is causing the issue?
Windows 10
Python 3.12
VSCode - packages are installed properly
Parrot ANAFI USA drone - connecting via wifi, can successfully see the drone in QGC.