当前位置:网站首页>Px4 application booting

Px4 application booting

2020-11-10 12:48:14 osc_f9krav3q

Modify startup script

 Insert picture description here
The new version of the PX4 Firmware these rc The file location is :/PX4-Autopilot/ROMFS/px4fmu_common/init.d In the folder .

1. With rc Start with the files of the flight control startup script , These files determine which applications should execute , Those who don't carry out .

2.pixhawk Support multiple types of aircraft , Four axis , Fixed wing , Helicopters and so on . It's through these rc The startup script specifies . For example, if it is rc.fw_defaults It's a script for a fixed wing aircraft , If the plane has a multirotor, this rc.fw_defaults It's not going to work , But to perform rc.mc_defaults This multi rotor script .

3. If our plane is multi rotor , We are generally modifying rc.mc_apps 了 . Put the corresponding application in this script XXX start that will do .

I set the boot auto start to Data_link_read This app , stay rc.mc_apps It can be written like this in Chinese :
 Insert picture description here

版权声明
本文为[osc_f9krav3q]所创,转载请带上原文链接,感谢