How do you program Codrone in drive mode using snap?
Welcome to the Robolink Community forum!
Latest posts made by johnnytechknow
-
CoDrone Drive Mode Snap Programming?
-
Code Vehicle Mode?
My students converted a CoDrone to a vehicle with the conversion kit. Is there a way to code the vehicle to do basic movements with Arduino or Python? Are there tutorials on Base Camp?
-
Faulty or Damaged Motor
The front left motor on one of our CoDrones does not spin. I tried swapping it with the right motor and it still didn't work. How do I get it replaced?
-
CoDrone Drifting/Won't Hover
I have two CoDrone's that I use in the classroom and am considering purchasing a classroom set but my two drones drift. I have followed the calibration instructions by pressing the physical button but they behave the same way. I tried looking for the trim directions but your link results in a 404 page not found message. I was able to reset the trim parameters and fly a drone with the Petrone app on my phone but when I run the sample Python code, the drones do not hover. They bounce to the side.
-
Analog Flight Control - Lesson and Video Parity?
I was trying the analog control lesson and followed the example given in the lesson but my CoDrone would not respond to the movement of the analog joysticks. Since you have sent me video links to help fill in gaps of information and understanding for my previous questions I searched and found a video about flight control on the Robolink YouTube channel. This leaves me feeling as an educator that the analog flight control lesson does not provide enough information on its own.
The code sample in the lesson does not match the Controller Flight code example. Should the code sample from the lesson work? It did not work for me but the example code did.
Am I missing something?
I hesitate asking my students to follow a lesson that will leave them unnecessarily frustrated.
-
Tips to Aid in Debugging CoDrone Movement
I have been working on the point to point challenge and am losing track of which movement code I need to adjust or change.
Can you suggest a way to make debugging CoDrone movement coding a bit easier? In addition to using comments in the code can the controller board produce a sound triggered by code before a section of code is run as a marker of some kind? Could this be done coding LEDs on the remote or on the CoDrone itself?
-
CoDrone Coding Killswitch?
Hi my name is Johnny Acevedo and I am a STEM Educator in Harlem NYC.
I am a CoDrone noob and have been working through the lessons as I anticipate teaching with CoDrone to a group of 20 students each with their own drones.
When I was attempting Pin Point Challenge in Beginner's Lesson 4 my CoDrone moves up (throttles) when Pitching until it reaches the ceiling and gets stuck hovering there.
I have isolated the throttle code and CoDrone should only be moving down but it does not.
Two questions:
- Why does CoDrone fail to throttle down when?
- Is there a way to code a kill switch on the controller so that CoDrone can be stopped immediately when it gets stuck somewhere or might hit someone?
Here is the code I am using so far:
#include <CoDrone.h> void setup() { CoDrone.begin(115200); //Intitialize Connection with Specific CoDrone byte droneAddress[6]= {0xB4, 0x2D, 0xBC, 0xC2, 0xB5, 0xD0}; CoDrone.AutoConnect(AddressInputDrone, droneAddress); //CoDrone.AutoConnect(NearbyDrone); CoDrone.FlightEvent(TakeOff); //TakeOff for 2 seconds delay(2000); // PITCH=30; //Pitch+(forward) //CoDrone.Control(); //delay(11000); THROTTLE=-100; CoDrone.Control(); delay(5000); //THROTTLE=-20; //Throttle-(Down) for 1 seconds //CoDrone.Control(); //delay(1000); //YAW=-90; //Yaw-(Rotate CCW left) for 2 seconds //CoDrone.Control(); //delay(2000); //PITCH=70; //Pitch+(forward) //CoDrone.Control(); //delay(11000); CoDrone.FlightEvent(Landing); //Land } void loop() { // put your main code here, to run repeatedly: }