mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 14:10:04 +08:00
* feat(crsf_rc): add CRSF receiver bind command Add ability to initiate CRSF receiver binding from QGroundControl or the NSH console. When MAV_CMD_START_RX_PAIR is received with RC_TYPE_CRSF, the driver sends the CRSF bind command frame over UART. Binding is rejected when armed or on singlewire configurations. Also adds RC_TYPE and RC_SUB_TYPE constants to VehicleCommand.msg and replaces magic numbers in DsmRc and RCInput drivers. Based on PX4/PX4-Autopilot#23294. * style(crsf_rc): use C++ style comment * style(crsf_rc): zero-init vcmd, remove noisy comments, drop unused enum value * fix(rc): check write return value in BindCRSF, guard Spektrum bind against invalid sub-type * fix(rc): warn and deny invalid Spektrum bind sub-type Previously, an unrecognized param2 sub-type would silently leave dsm_bind_pulses at 0 and return the generic UNSUPPORTED ACK. Add an explicit else-branch that logs a PX4_WARN and returns DENIED so users get clear feedback in QGC.