Error compiling for board Rokit-SmartInventor-mega32_v2.

Hello everyone, I am having trouble uploading my Code to my CoDrone.
It says:
Arduino: 1.8.5 (Windows 10), Board: “Rokit-SmartInventor-mega32_v2”

C:\Users\User\Documents\Arduino\libraries\CoDrone\CoDrone_util.cpp:166:48: error: ‘scaleChange’ declared as function returning a function

int CoDroneClass::scaleChange()(int analogValue)


exit status 1
Error compiling for board Rokit-SmartInventor-mega32_v2.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

The code is:

#include <CoDrone.h>

void setup() {

CoDrone.takeoff(); //Take off for 3 seconds

CoDrone.setThrottle(50); //Throttle for 2 seconds

CoDrone.setThrottle(0); // Set throttle back to 0
CoDrone.setRoll(-30); //Pitch and roll for 2 seconds
CoDrone.move(2);; //Land


void loop () {
byte bt8 = digitalRead(18);
byte bt4 = digitalRead(14);
byte bt1 = digitalRead(11);

if(bt1 && bt4 && !bt8){

The error message says that the problem is in line 166 of CoDrone_util.cpp. I looked at the latest version and it does not have that error so you should re-install the CoDrone library.

Start at Step 6: