Pixhawk Video Tutorial with matlab simulink
8 views (last 30 days)
Steve Kuznicki on 16 Apr 2018
You will need to become familiar with the PX4 open source flight stack and write your own S-Functions that communicate via the uORB messaging mechanism. You will be able to subscribe or publish to uORB topics yourself just like the commander/navigator modules do. This is essentially what the Pixhawk PSP does for you.
anil guclu on 7 Sep 2018
I am able to download matlab/simulink model file into px4, drive servo motors and log data in an SD card. Do you still need help?
anil guclu on 28 Apr 2019
Sorry for late answer, You may check the below things,
- be sure that rc.txt file is located in the SD card in etc folder. In addition there must be a folder named as log.
- please check inside the rc.txt, there must be a line like "px4_simulink_app".
- May be you may run the model, there is a safety button which flahes, it must be solid in order to generate signal from PWM ports.
- for logging data, you may connect a step input to enable port of binary logger block. Aware that type of the enable is boolean, and the output of step input is decimal. you must convert it.
please try those and inform me, I will do my best.