Error Building Pixhawk in External mode

2 vues (au cours des 30 derniers jours)
Manuel Alfonso Zamora Aguirre
Commenté : N/A le 25 Jan 2019
Help,I can't build on Matlab with PX4:
>> PixhawkPSP('/usr/local/MATLAB/px4')
Found compatible version R2017b Using Target Package path of /usr/local/MATLAB/px4
Error using sprintf Function is not defined for 'cell' inputs.
Error in codertarget.pixhawk.Px4PSP_Install_UI/build_firmware_callback
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 309) Error while evaluating Button PrivateButtonPushedFcn.
Operation terminated by user during PixhawkPSP (line 82)
  2 commentaires
Steve Kuznicki
Steve Kuznicki le 14 Déc 2018
We are looking into this and will provide a workaround/solution.
Steve Kuznicki
Steve Kuznicki le 14 Déc 2018
By the way - you don't need to "build" the firmware using this UI. I would suggest using the UI for downloading the firmware, then exit the UI. Then using a terminal window, go to the "Firmware" folder and issue a "make px4fmu-v2_default" (or whatever target you have). If you can build the firmware using this method, then you should be good to go using a Simulink model and "build".

Connectez-vous pour commenter.

Réponses (1)

Erlantz Otaola
Erlantz Otaola le 3 Déc 2018
The same problem here. I haven't found a solution yet.
  2 commentaires
Erlantz Otaola
Erlantz Otaola le 13 Déc 2018
We did eventually notice that we were using a gcc-7 compiler. The right way to do it is using the gcc-5.4 compiler, which solves that error.
N/A
N/A le 25 Jan 2019
Can you elaborate on the settings you set in Simulink, to get the ext_mode_intro.slx example working? For example, what settings need to be set in Simulation > Model Configuration Parameters > Hardware Board settings > Target hardware resources > External mode options?
I currently have
"Data Exchange Serial Port" = ttyACM0 (Ubuntu 18.04, Matlab 2017b, and since I use the USB cable directly, no FTDI)
"Baud Rate Select" = 115200
Furthermore, under Model Configuration Parameters > External mode configuration, I have:
"Transport layer" = serial . Mex-file name: ext_serial_win32_comm (unable to change that fromhere)
"MEX-file arguments" = 1 8 115200 5
I suspect that there is some discrepancy in defining these arguments, involving COM ports in Linux.
Any tips or suggestions are welcome!

Connectez-vous pour commenter.

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by