Hello, I have some question about the usage of UAV Toolbox Support Package for PX4 Autopilots Toolbox.
In init.d/rcS file, there is a line
px4_simulink_app start
that enables to start custom simulink app in px4 module. Simultaneously, If I designed flight controller algorithm, commenting out
# mc_att_control start
# mc_pos_control start
in rc.mc_apps file is necessary to execute our simulink app without any collision with existing px4 control algorithm.
However, is it possible to "conditionally" executing this px4_simulink_app?
I know there is the "enabled subsystem" in simulink(Thanks again Arun Mathamkode to answer it) but this is conditionally executing the simulink block, not the px4_simulink_app itself. What I want to do is leaving the existing px4 control algorithm, and conditionally executing my custom simulink app (For example, If I change the channel in my RC controller). If I make this using "enabled subsystem" block, I have to make the existing px4 control algorithm with simulink, and add my algorithm but this is very tough work because making the px4 control algorithm using simulink again is very hard and cumbersome.
Therefore, to summarize my question,
Q1. Is conditionally executing px4_simulink_app when existing px4 control algorithm runs possible?
Q2. If Q1 is impossible, what I can chose is making px4 control algorithm with simulink and add my custom algorithm, and upload that combined algorithm. Is there any already made "existing px4 controlller algorithm" using simulink? Or, Is there any method that I can easily duplicate the px4 code into Simulink block?
Please forgive my bad English.
Thank you for reading
Sincerely,
Jongwon Lee