I have been coding my codrone with a raspberry pi 4 the past few days. something you have to do is look in your /dev folder:
it shoudl spit out a list of anything starting with "tty" and find the ttyUSB0 (in my case mine change on day 2 to ttyUSB1)
and also know what your codrone number is ad use this to connect to your codrone this is what I use:
// In Python // Connection code to a specific CODRONE on Raspberry Pi // where the number "8697" is the number to your CODRONE // and the /dev/ttyUSB1 is the serial link used (not sure why they // just didn't use the normal bluetooth if not drone.connect("8697", "/dev/ttyUSB1"): print("Failed to connect") drone.close() exit(4)
hope that helps.
As an aside: when coding python sometimes it will take 2-5 executions of the code before it finally connects. No clue why (either times out or says 0% battery, even with a fresh battery). it easily takes 20s for the connection to get established before the lights go solid green and liftoff.