Page 1 of 2

Command Based Flight Control doesn't work

Posted: Sun Oct 10, 2021 3:23 am
by sajisaka
I got crazyflie 2.1 and lighthouse deck recently.

I follow the tutorial to set up your drone and positioning system,
I tried to fly with Command Based Flight Control, but it does not respond.

I have confirmed the following items.
1) Update the firmware to the latest version
2) Flying drone with mobile app
3) Flying drone using Ubuntu20.04 + cfclient + gamepad
4) The position of the drone is correctly recognized on the lighthouse positioning.

There is no error or warning on 'console' tab so I can't figure out what is problem.
Please let me know if there is anything else I need to do.

Re: Command Based Flight Control doesn't work

Posted: Tue Oct 12, 2021 3:56 am
by jonasdn
Hi Sajisaka!

This sounds weird!! Let's try to figure it out!
  • Have you checked in the Lighthouse tab that the drone is receiving from the base stations?
  • And that the position of the drone that is given seems ok?
  • Could you try to use one of the python examples to fly? Like for instance autonomous_sequence_high_level.py in the https://github.com/bitcraze/crazyflie-lib-python repository
  • Could you check if there is any error output in the Log Client tab?
Thanks
Jonas

Re: Command Based Flight Control doesn't work

Posted: Thu Oct 14, 2021 12:06 pm
by sajisaka
>Have you checked in the Lighthouse tab that the drone is receiving from the base stations?
Yes it seems OK.

>And that the position of the drone that is given seems ok?
Yes

>Could you try to use one of the python examples to fly? Like for instance autonomous_sequence_high_level.py in the https://github.com/bitcraze/crazyflie-lib-python repository
I'll try and report it

>Could you check if there is any error output in the Log Client tab?
I check but there is no information (no error, no warning)

Regards
AJISAKA

Re: Command Based Flight Control doesn't work

Posted: Sun Oct 17, 2021 5:17 am
by sajisaka
>>Could you try to use one of the python examples to fly? Like for instance autonomous_sequence_high_level.py in the https://github.com/bitcraze/crazyflie-lib-python repository
>I'll try and report it

I runned autonomous_sequence_high_level.py and it works.
(drone takes off and it seems to follow some trajectory, unfortunately, my room is not so wide so drone hits the wall.)

but In cfclient, the problem still remains.

Regards
AJISAKA

Re: Command Based Flight Control doesn't work

Posted: Mon Oct 18, 2021 5:01 am
by jonasdn
Thanks for testing sajisaka!

Could you clarify one thing, in what way does Command Base Flight Control not respond? Is the buttons grayed out, or is it possible to press them and nothing happens?

Could you check the parameter system.canFly?


All the best
Jonas

Re: Command Based Flight Control doesn't work

Posted: Sat Nov 06, 2021 10:55 am
by sajisaka
Sorry for late reply.

>Could you clarify one thing, in what way does Command Base Flight Control not respond? Is the buttons grayed out, or is it possible to press them and nothing happens?

I can push the buttons and nothing happens.

Regards.

AJISAKA

Re: Command Based Flight Control doesn't work

Posted: Tue Nov 09, 2021 5:49 am
by jonasdn
Ok, thanks!

Is there any output in the Log Client tab that seems relevant?

Re: Command Based Flight Control doesn't work

Posted: Fri Nov 26, 2021 11:32 am
by mwsatman
Hi,
I have a similar problem with my ubuntu PC.
The Command Base Flight Control is accessible (I can press the button) but nothing happens.

The detail on my case:
1) Update the firmware to the latest version (both crazyflie and lighthouse deck)
2) The position of the drone is correctly recognized on the lighthouse positioning (all green up to estimator).
3) managed to fly the drone with:
--> A) mobile app,
--> B) windows PC with VM and command base flight control, and
--> C) ubuntu PC (the problem one) but with python script from here https://www.bitcraze.io/documentation/t ... ne-bundle/
4) Not sure about the log client, but I don't specifically see any ERROR message

The only weird part in my case is on the bottom left on my cfclient has the message
Using Normal mux with LiteOn Lenovo Traditional USB Keyboard Consumer Control (No input mapping)
while I don't see that message on VM in windows (point 3B above).
I suspect the cfclient misinterpret my keyboard as an input and waiting for something, but at this point, I have no idea what to fix.

Please let me know if there is anything else that I need to provide.

Re: Command Based Flight Control doesn't work

Posted: Fri Nov 26, 2021 4:10 pm
by kimberly
Hi!

I believe that Jonas is talking about the console tab, which you can find in 'view' > 'tabs'> check 'console tab'. If the crazyflie connects to the cfclient, here will be output of several printifs from the crazyflie itself, and should among other things, indicate which decks are connected and if the kalman filter for positioning is diverging.

Could you copy the content of that? Along with the content of 'help' > 'about' > 'debug' from the cfclient (while the crazyflie is connected).

Re: Command Based Flight Control doesn't work

Posted: Mon Nov 29, 2021 1:13 pm
by mwsatman
Hi Kimberly,

Just to clarify, I am not the OP, but I have similar problem.
In my case, here is the output from the console tab

Code: Select all

SYS: ----------------------------
SYS: Crazyflie 2.1 is up and running!
SYS: Production release 2021.06
SYS: I am 0x203336473152500700440025 and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
DECK_CORE: 2 deck(s) found
DECK_CORE: Calling INIT on driver bcLighthouse4 for deck 0
DECK_CORE: Calling INIT on driver bcFlow2 for deck 1
ZR2: Z-down sensor [OK]
PMW: Motion chip id: 0x49:0xB6
IMU: BMI088: Using I2C interface.
IMU: BMI088 Gyro connection [OK].
IMU: BMI088 Accel connection [OK]
IMU: BMP388 I2C connection [OK]
ESTIMATOR: Using Kalman (2) estimator
CONTROLLER: Using PID (1) controller
MTR-DRV: Using brushed motor driver
SYS: About to run tests in system.c.
EEPROM: I2C connection [OK].
STORAGE: Storage check [OK].
IMU: BMI088 gyro self-test [OK]
DECK_CORE: Deck 1 test [OK].
SYS: Self test passed!
STAB: Wait for sensor calibration...
SYS: Free heap: 16360 bytes
LHFL: Lighthouse bootloader version: 2
STAB: Ready to fly.
LHFL: Bitstream CRC32: 112BC794 [PASS]
LHFL: Firmware version 6 verified, booting deck!
and the debug tab

Code: Select all

Cfclient
Cfclient version: 2021.6.1.post25+7497eea
System: linux
Python: 3.8.10
Qt: 5.15.2
PyQt: 5.15.6

Interface status
radio: Crazyradio version 99.55
UsbCdc: No information available
udp: None
prrt: No information available

Input readers
linuxjsdev (1 devices connected)

Input devices
linuxjsdev: (0) LiteOn Lenovo Traditional USB Keyboard Consumer Control

Crazyflie
Connected: radio://0/100/2M/E7E7E7E701
Firmware: 00 (CLEAN)

Decks found
bcFlow2: rev=A, adr=0DC1975700000028
bcLighthouse4: rev=D, adr=0D3265AE000000C4

Sensors found
AK8963: 0
LPS25H: 0
BMP388: 1

Sensors tests
MPU6500: 0
AK8963: 0
LPS25H: 0
Still, to my attention, the strange thing from the logs above seem to be the Input devices.