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")
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.
Please note that if you uploaded your own code to the board this wipes the original program. Alternatively if you have dip dwitch1 in the up position, this will leave you in programming mode. Please make sure that all the dip switches are inthe same position.
Got it! I see what you mean, "sequencing" can definitely be confusing in this context. I found the lesson, and adjusted the wording so it's clearer. I also called out checking out the video to get a visual idea of what Upload Mode looks like.
So the CoDrone itself isn't where code downloads to, it's simply receiving commands. If you're programming in Snap, you're actually sending live commands to the drone as you run the program. If you're programming in Arduino, you're downloading the code to the Smart Inventor board (which is our custom Arduino), which communicates your code to the CoDrone via Bluetooth (BLE). The code is downloaded to the board via a USB cable.
@dracen As of right now there isn't a way to disable the link event state it is done by default. Nothing is wrong with your CoDrone code, however once the new update is published along with the tutorials, accessing the data will be easier in Arduino.
The CoDrone requires a 3.7volt LiPo battery, 4.7 volts is above the max voltage of the battery we provide which is 4.2 volts. This could potentially damage the Drone circuit and will void the warranty.
Ill be copying & pasting my answer from there since your question seems to be the same:
Hello, the website pages seems to be constantly being updated (that's a good thing!), so if your Rokit Smart included some paper instructions with a specific link then it may be outdated.