Pixhawk unable to send PWM / arm

1 次查看(过去 30 天)
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?

采纳的回答

Rasmus
Rasmus 2021-9-4
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 --------

更多回答(0 个)

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by