Page 1 of 1

Problem with COMMAND BASED FLIGHT CONTROL in cfclient

Posted: Fri Apr 30, 2021 3:19 pm
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

Re: Problem with COMMAND BASED FLIGHT CONTROL in cfclient

Posted: Mon May 03, 2021 4:27 am
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/

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

Posted: Tue May 04, 2021 8:08 pm
by Pasquale
Thank you for your reply,

I followed the guide and now it works!