I have been sucessfuly running programs using dronekit, and particularly this script. But, a day, i take off the RX and TX wiring and connect them all back again. But, this time it seems like it doesn’t pass the vehicle connecting command. I put a print() on before and after that command, and as what i guessed, the program only getting to the “before” print(), and then stuck at the:
and also, i tried to test the “mavproxy.py” command, but it doesn’t show the data from the vehicle fully (only some parts of it, like the flight mode) and i can’t send any command, like:
Yes, i have. Turns out when i replaced the Raspberry Pi, the problem’s gone. Does it have anything to do with the RX and TX of the previous Raspberry Pi?
You can try to verify the previous RPi using a modified this demo python code with a terminal program that accept keyboard input via something like USB serial dongle.
This demo code will loop back the keyboard input to verify both RX and TX connectivity.