VOXL2-VOXL2IO-PX4 firmware
-
I have written Dshot signal generation using FreeRTOS in STM32 using STM Cube IDE. It is working and I can control the motor which is connected to a 4 in 1 ESC. I want to connect this STM32F446RE to VOXL2 board and give the actuator inputs through PX4 firmware. I have written code in my STM32 to parse the inputs from VOXL2. Please explain how to connect. Can I replace the STM32 in place of M0065 and proceed? I tried to connect our own STM32 through J18. But I am not able to get any inputs. Is PX4 VOXL2-IO written such that it configures only M0065?
@Alex-Kushleyev
I referred to the below link.
https://github.com/modalai/px4-firmware/tree/main/src/drivers/voxl2_io -
You were looking at an old version of the voxl2)_io driver. The latest version can be found here : https://github.com/modalai/px4-firmware/blob/voxl-dev/src/drivers/voxl2_io/voxl2_io.cpp
Voxl2IO::get_version_info()
function will query the hardware and software version of the M0065 board before the voxl2_io px4 module will successfully start up and send out control commands.The version check will make your testing slightly more complicated because you'd need to implement the extended version reply on your STM. You should also check whether the actual format of the commands that you implemented is correct (not from the old version).
If you are able to compile the px4 code, you can just disable the version check in the code and the voxl2_io px4 module should let you send out the actuator commands.
Let me know if you need more assistance.
Alex
-
@Alex-Kushleyev Thanks for the response. Let me try the newer version and come back