Flying directly at wall in "Hover" mode

Post here to get support
lukego
Beginner
Posts: 7
Joined: Sun Apr 11, 2021 8:28 am

Re: Flying directly at wall in "Hover" mode

Post by lukego »

kristoffer wrote: Mon Apr 26, 2021 8:10 am Other interesting tests would be to check:
1/ Does it fly well without the flow deck?
I am not sure how to answer that. On the one hand we have never managed to fly it for more than about ten seconds before crashing into something (usually the roof.) On the other hand I don't know how much skill and practice is supposed to be needed for successful flight. So I think the answer is that it does not fly well without the flow deck but maybe it's just that me (and more often my seven year old son) aren't good pilots yet.
2/ If you lift it up with the flow deck mounted and move it around a bit, does the X, Y, Z at the bottom of the flight tab in the client change accordingly?
I will check this once I get the new client software installed.
jonasdn
Expert
Posts: 132
Joined: Mon Mar 01, 2021 3:13 pm

Re: Flying directly at wall in "Hover" mode

Post by jonasdn »

lukego wrote: Sun May 09, 2021 6:27 am Sorry guys, I've been spending all available time so far just fighting with Python dependency installation problems. It's miserable. I will come back to this when I am ready to face another attempt at deciphering pip error messages. (I have also been trying tools like x11docker to help but no luck yet.)
Hi lukego!

sorry to hear about your Python woes.

Maybe you could try with the Bitcraze Virtual Machine, which has all dependencies installed: https://github.com/bitcraze/bitcraze-vm/releases
lukego
Beginner
Posts: 7
Joined: Sun Apr 11, 2021 8:28 am

Re: Flying directly at wall in "Hover" mode

Post by lukego »

I've tried now with the latest VM and upgrading to the latest firmware. I have a different problem now: the client is able to connect but it does not receive telemetry and all of the command-based flight buttons are grayed out. The console seems to say that the Flow deck is detected and that it passed selftest.

Any further tips?
jonasdn
Expert
Posts: 132
Joined: Mon Mar 01, 2021 3:13 pm

Re: Flying directly at wall in "Hover" mode

Post by jonasdn »

So in the client, the command based flight is grayed out if ...

... we are not connected:

Code: Select all

if not connected:
        self.commanderBox.setEnabled(False)
        return

or if the Crazyflie reports that it cannot fly:

Code: Select all

if self._can_fly == 0:
        self.commanderBox.setEnabled(False)
        self.commanderBox.setToolTip(
            'The Crazyflie reports that flight is not possible'
        )
        return

In the firmware the Crazyflie reports it cannot fly i it is up-side-down or charging:

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();
}
Another thing that can gray out the flight commands is that we cannot find a positioning deck:

Code: Select all

    #                  flowV1    flowV2     LightHouse       LPS
    position_decks = ['bcFlow', 'bcFlow2', 'bcLighthouse4', 'bcDWM1000']
    for deck in position_decks:
        if int(self.helper.cf.param.values['deck'][deck]) == 1:
            self.commanderBox.setEnabled(True)
            break
    else:
        self.commanderBox.setToolTip(
            'You need a positioning deck to use Command Based Flight'
        )
        self.commanderBox.setEnabled(False)
So, some of this sets tooltips, text that appear when you hover the pointer over the grayed out box, do you get any tooltip?
Post Reply