Pixhawk unable to send PWM / arm

1 visualización (últimos 30 días)
Rasmus
Rasmus el 4 de Sept. de 2021
Respondida: Rasmus el 4 de Sept. de 2021
I have the pixhawk 1 and using connectedIO with the px4demo_PWM I am unable to send consistently PWM signals on the main out. If I plot the actuator outputs (uORB message), they occasionally jump to the commanded value but then returns to the fail safe value. I do not have a safety switch but have set the CBRK_IO_SAFETY=22027, and I have checked using the PX4 Parameter Read block that this value is actually set. I have also checked that starting the pixhawk without the SD card, that I can arm without the safety switch. I also tried to read the uORB safety message, and the safety_off value is 0. What is going wrong here, and how do I get to write the PWM?

Respuesta aceptada

Rasmus
Rasmus el 4 de Sept. de 2021
I managed to fix the issue by adding the following to the rc.txt on the SD card:
-------- rc.txt --------
....
usleep 1000
px4io safety_off
usleep 1000
px4_simulink_app start
...
-------- rc.txt --------

Más respuestas (0)

Productos


Versión

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by