Problem with COMMAND BASED FLIGHT CONTROL in cfclient

Discussions about all things Bitcraze
Post Reply
Pasquale
Beginner
Posts: 2
Joined: Fri Apr 30, 2021 2:59 pm

Problem with COMMAND BASED FLIGHT CONTROL in cfclient

Post by Pasquale »

Hi to everybody,

I'm on Windows 10 and I followed the official guide to install the client on my PC. After running it with the command "cfclient", I'm not able to control my Crazyflie 2.0 through the commands in "COMMAND BASED FLIGHT CONTROL" section, and when I put the cursor on it I read the following message:

"The Crazyflie reports that flight is not possible"

I cannot understand why... it would be great if you could help me!

I thank you in advance,

Pasquale
jonasdn
Beginner
Posts: 18
Joined: Mon Mar 01, 2021 3:13 pm

Re: Problem with COMMAND BASED FLIGHT CONTROL in cfclient

Post by jonasdn »

Hi Pasquale!

The Crazyflie reports that it cannot fly if it is tumbled (turned up-side-down) or if it is charging (charger connected). See code in firmware in supervisor.c: https://github.com/bitcraze/crazyflie-f ... isor.c#L62:

Code: Select all

//
// We cannot fly if the Crazyflie is tumbled and we cannot fly if the Crazyflie
// is connected to a charger.
//
static bool canFlyCheck()
{
  if (isTumbled) {
    return false;
  }
  return !pmIsChargerConnected();
}
But! In your case I think it might be that the firmware is not new enough to have this supervisor module, since it was added in the latest release. And then the canFly logging parameter is not available and the client will interpret that as it being unable to fly.

Please try upgrading your Crazyflie by following the instructions for Firmware upgrade here: https://www.bitcraze.io/documentation/r ... de_client/
Pasquale
Beginner
Posts: 2
Joined: Fri Apr 30, 2021 2:59 pm

[SOLVED] Re: Problem with COMMAND BASED FLIGHT CONTROL in cfclient

Post by Pasquale »

Thank you for your reply,

I followed the guide and now it works!
Post Reply