mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
Replace the local hex2nibble/hex2nibble_error static helpers and their dependency on char_to_hex with AP_Common's hex_char_to_nibble, hex_charpairs_to_uint8s, and hex_chars_to_uint32. Also populate f.id directly from hex_chars_to_uint32 in handle_FrameDataStd and handle_FrameRTRStd, removing the intermediate id stack variable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Testing And Debugging
Testing under SITL
A wide range of DroneCAN peripherals are supported in the SITL simulation system. The simplest way of starting a DroneCAN enabled simulated vehicle is to use sim_vehicle.py.
For a quadplane use: sim_vehicle.py with the option -f quadplane-can
For a quadcopter use: sim_vehicle.py with the option -f quad-can