CoDrone Lite Troubleshooting



Installation

I can’t connect to the CoDrone 

Make sure you properly installed the driver.  https://www.robolink.com/how-to-install-rokitbrick-codrone/.  Check to see if all of your cables are firmly connected.  Try using another USB port.

I am using a Mac and I can’t update the bluetooth board 

There is currently no mac support for updating your Bluetooth Board.  Coming soon! 


Using the CoDrone

Setting Trim 

To review how to trim your CoDrone, go here

My CoDrone is always leaning towards one direction 

This could mean that your CoDrone needs to be trimmed.  To review how to trim your CoDrone, go here

You should also check your motors to see if there is any hair or debris slowing down the propellers.  Take off the propeller and inspect the shaft.

Make sure the propellers don’t have any chips or bends in them.

I replaced my propeller/propellers and now my CoDrone won’t fly

You may have installed the wrong propellers in the wrong direction.  Review how to replace your propellers here

My CoDrone won’t fly upwards and keeps bouncing along the ground

This could mean that your CoDrone needs to be trimmed.  You should add THROTTLE trim.  To review how to trim your CoDrone, go here

This could also be a result of a low battery.  Replace the battery with a fresh one and try again.

My CoDrone flies upward too quickly and gets stuck on the ceiling

This could mean that your CoDrone needs to be trimmed.  You should add negative THROTTLE trim.  Drones will always suction to the ceiling if they get too close.  To review how to trim your CoDrone, go here

One of my propellers seems to be spinning much slower than my other ones

This could be a trim problem or a motor issue.  You can test this by removing the motor and switching it with the motor diagonally opposite it (diagonally because adjacent motor’s propellers are oriented in different directions).  If the specified motor is still spinning slower, then it is a hardware issue and the motor should be cleaned or replaced.  To clean the motor, pull off the propeller and remove and hair or debris from around the shaft.

If the problem does not follow the motor but instead persists with the specific location of the CoDrone, the CoDrone should be trimmed. To review how to trim your CoDrone, go here

My CoDrone is using only the two front motors.  

The CoDrone is probably in Drive mode.  Include:

 CoDrone.DroneModeChange(Flight);

at the end of your setup code to revert the CoDrone to Flight mode.  You should only have to do this once

My CoDrone won’t pair.   

Remove and replace the battery and try again.  If the green light continues blinking and the CoDrone still cannot pair, check your controller code to ensure the AutoConnect command is being used properly.

One of my motors is weaker/won’t spin.

Remove the propeller and make sure there are no hairs or fibers obstructing the shaft.

If your motor is spinning sporadically or not spinning at all, try improving the connecting between the lead wires and the conducting surface on the CoDrone’s arms.  Take small pliers or tweezers and pull the lead wires upwards:

Before (Lead wires are laying flat)

zoom wires 2

 After (Lead wires are lifted)

zoom wires 1


CoDrone Lite Documentation

Snap! for Robolink

Snap! was developed by Jens Mönig at MioSoft Corporation (now at SAP), with design input and documentation by Brian Harvey at Berkeley, and contributions by students at Berkeley and elsewhere.

Learn more about Snap! from their official webpage https://snap.berkeley.edu/about.html.

 

Snap! for Robolink is also built off of Snap4Arduino, a modifaction of Snap! that lets you seamlessly interact with almost all versions of the Arduino board.  Snap4Arduino is being developed by Bernat Romagosa. You can always reach him at bernat (at) arduino (dot) org.  Learn more at their official webpage http://snap4arduino.org/.

 

 


Block Guide

Here we provide short descriptions of some of the more useful CoDrone Lite blocks included in the Snap! for Robolink library.  This page will be updated as the Robolink library develops.

Screen Shot 2016-05-21 at 4.18.32 PM
Contents:
  1. Starting Blocks
  2. Control
  3. Connect
  4. CoDrone
  5. Variables
  6. Operators


Starting Blocks

rb_whenclicked

  • Runs all blocks attached to it when the green flag is clicked

rb_whenkeypressed

  • Runs all blocks attached to it when the specified key is pressed
  • Can be assigned to any key on the keyboard

rb_whenimclicked

  • Runs all blocks attached to it when the block is clicked

 


Control Blocks

rb_waitsecs

  • Waits the specified amount of time before moving on to the next block
  • All previously started commands will continue to perform

rb_forever

  • Repeats whatever blocks are inside the forever block forever

rb_repeatcount

  • Repeats whatever blocks are inside the repeat block for the specified amount of times

rb_stopall

  • Stops all currently running actions
  • The CoDrone will continue to perform the last command it was given

rb_stopallbut

  • Stops all currently running actions except for the blocks attached to this block
  • The CoDrone will continue to perform the last command it was given

Connect

rb_connectonearest

  • Connects to a nearby CoDrone when clicked

rb_connecttoconnected

  • Connects to the previously connected CoDrone when clicked

rb_disconnect

  • Disconnects from the connected CoDrone when clicked

rb_forcedlanding

  • Immediately forces the CoDrone to land when clicked

CoDrone

rb_roll

  • Sets the Roll to the indicated value

rb_pitch

  • Sets the Pitch to the indicated value

rb_yaw

  • Sets the Yaw to the indicated value

rb_throttle

  • Sets the Throttle to the indicated value

rb_sending

  • Sends the Roll, Pitch, Yaw, and Throttle values to the CoDrone to be performed

rb_flightevent

  • Performs the indicated Flight Event maneuver

Variables

make-a-variable

  • Create a new variable

set-_-to

  • Set the selected variable to the indicated value

change-by

  • Add the indicated value to the selected variable

Operators

math-operators

  • Perform the indicated mathematical operation

math-comparitors

  • Compares the two indicated values

and

  • Adds an additional conditional statement with an ‘and’ operator

or

  • Adds an additional conditional statement with an ‘or’ operator

not

  • Changes the conditional statement to the opposite value

true-false

  • Represents true or false