Skip to content

Add Crazyflie 1.0 support#809

Open
sighmon wants to merge 2 commits intobitcraze:masterfrom
sighmon:add/crazyflie-1.0-support
Open

Add Crazyflie 1.0 support#809
sighmon wants to merge 2 commits intobitcraze:masterfrom
sighmon:add/crazyflie-1.0-support

Conversation

@sighmon
Copy link
Copy Markdown

@sighmon sighmon commented Apr 10, 2026

This PR improves compatibility with older Crazyflie 1.0 firmware.

  • Only include/use battery pm.state when it exists
  • Guard deck.* parameter access in FlightTab, lighthouse_tab, and LEDRingTab
  • Coerce flight mode spinbox config values to int before setting Qt widgets
  • Add a small client-side fallback so connection setup can continue with legacy firmware that does not answer the newer platform/protocol probe
  • Add a legacy pose fallback in pose_logger that uses stabilizer.roll/pitch/yaw and baro.aslLong when stateEstimate.* is not available

Validation

Note: help needed testing with Crazyflie 2.0 hardware please.

Tested against Crazyflie 1.0 firmware and confirmed:

  • connection completes
  • battery voltage/bar updates
  • motor and flight data updates
  • missing deck parameters no longer crash the UI
# Help > About > Debug
Cfclient
Cfclient version: 2026.4rc2.post1.dev0+g85087921c.d20260410
System: darwin
Python: 3.13.12
Qt: 6.7.1
PyQt: 6.7.1

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

Input readers
PySDL2 (1 devices connected)

Input devices
PySDL2: (0) PLAYSTATION(R)3 Controller

Crazyflie
Connected: radio://0/48/250K
Firmware: ab6d531c7ca7 (CLEAN)

Decks found

Sensors found
HMC5883L: 0
MS5611: 0

Sensors tests
MPU6050: 1
HMC5883L: 0
MS5611: 0
crazyflie-1 0-v2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant