Using VOXL ESCs with PX4
-
hi
I am building my drone, I want to use "VOXL ESCs with PX4" for my drone. Is there any documentation on how to use VOXL ESCs with Nvidia processors.e, the los setup?
Thanks.
suvasis -
Hi @Suvasis-M ,
The source code for the driver is here:
https://github.com/PX4/PX4-Autopilot/tree/main/src/drivers/actuators/modalai_escIf you have access to a UART port on the nvidia, it's likely you can port this driver over fairly easily but this isn't something we've done.
Thanks!
-
hi,
I have Jetson AGX orin processor, it has UART on M.2 KeyE. Ok then, looks like I can port the driver. Is there any ubuntu OS specifics? I have 20.04 version.
Thanks.
suvasis -
Hi @Suvasis-M ,
Its setup in the native form for Nuttx RTOS, which starts the driver up as a task, and has some specific PX4/Nuttx related calls, but you should be able to find equivalents for Ubuntu, so I don't believe there would be any blockers.
We create a packet and send it here:
https://github.com/PX4/PX4-Autopilot/blob/main/src/drivers/actuators/modalai_esc/modalai_esc.cpp#L1120and parse feedback here:
https://github.com/PX4/PX4-Autopilot/blob/main/src/drivers/actuators/modalai_esc/modalai_esc.cpp#L1151 -
@modaltb said in Using VOXL ESCs with PX4:
PX4/Nuttx related calls,
hi,
Which are the PX4/Nuttx related calls from the actuator?
Thanks.
suvasis -
You should be able to get by with standard POSIX stuff like open/read/write.
On our DSP, we had to get rid of a
poll
that was being used and we have some delays in place instead. -
-
We have the full toolchain and setup dockerized here: https://gitlab.com/voxl-public/rb5-flight/rb5-flight-px4-build-docker
Following that setup, you will install the Hexagon SDK which provides more info on the lower level stuff.
But, the PX4 code as shown above is what runs on the DSP.