Something wrong when I run the project in PX4 Autopilot in Hardware-in-the-Loop (HITL) Simulation with UAV Dynamics in Simulink

8 visualizzazioni (ultimi 30 giorni)
I run the project from PX4 Autopilot in Hardware-in-the-Loop (HITL) Simulation with UAV Dynamics in Simulink, it is a example that build flight control algorithem and deploy it into the flight controller, i have set up the Hardware Board to PX4 Pixhawk 4 and click build, deploy and run, and then something wrong came up:
The module 'Quadcopter_ControllerWithNavigation/Position & Rate Controller/Controller/Quaternion Validity Check/Quaternion Norm' cannot check out a license. This module requires one of the following licenses: 'Aerospace Blockset'.
(sorry, i can't find red text button)
this information came in twice.
I run
license('test', 'Aerospace_Blockset')
and the answer is 1,which means it is working(i guess). The reason why the answer is 1, is because i follow the gpt's instruction, change the path.
How can I fix this problem?
Thank you for your answers.

Risposta accettata

龙
il 27 Giu 2024
Modificato: il 27 Giu 2024
In D:\MATLAB2024a\licenses,there is a file called license_your_name_968398_R2024a.lic,inside this file, first several line:
INCREMENT Aerospace_Blockset MLM 369 permanent uncounted 6AE8A2D7578A \
VENDOR_STRING=vi=0:at=200:lu=300:ei=12117663:lr=1:ep=1: \
HOSTID=ANY ISSUED=30-Oct-2023 \
NOTICE=product=Aerospace_Blockset SN=968398 TS_OK \
SIGN=AD976ED25372
INCREMENT Aerospace_Blockset MLM 369 permanent uncounted 6AE8A2D7578A \
VENDOR_STRING=vi=0:at=200:lu=300:ei=12117663:lr=1:ep=1: \
HOSTID=ANY ISSUED=30-Oct-2023 \
NOTICE=product=Aerospace_Blockset SN=968398 TS_OK \
SIGN=AD976ED25372
You can notice that this two paragraphs are same, replace the Aerospace_Blockset in the second paragraph with Aerospace_Toobox, and the problem is solved.
I am not sure it is the exact/right answer to the problem, but there is no error after I replace that.
paragraphs that may solve your problem:
INCREMENT Aerospace_Blockset MLM 369 permanent uncounted 6AE8A2D7578A \
VENDOR_STRING=vi=0:at=200:lu=300:ei=12117663:lr=1:ep=1: \
HOSTID=ANY ISSUED=30-Oct-2023 \
NOTICE=product=Aerospace_Blockset SN=968398 TS_OK \
SIGN=AD976ED25372
INCREMENT Aerospace_Toolbox MLM 369 permanent uncounted 6AE8A2D7578A \
VENDOR_STRING=vi=0:at=200:lu=300:ei=12117663:lr=1:ep=1: \
HOSTID=ANY ISSUED=30-Oct-2023 \
NOTICE=product=Aerospace_Toolbox SN=968398 TS_OK \
SIGN=AD976ED25372

Più risposte (1)

Arun Mathamkode
Arun Mathamkode il 26 Giu 2024
Modificato: Arun Mathamkode il 26 Giu 2024
Can you try the following command ?
[status,errmsg] = license('checkout','Aerospace_Blockset')
I guess you have the license but license checkout is failing. Please see what errmsg you are getting.
You can also consider reaching out to MathWorks Technical support
  2 Commenti
龙
il 27 Giu 2024
Thanks for answering, Arun, this is the response after I run the command:
status =
0
errmsg =
'License checkout failed.
License Manager Error -5
Cannot find a license for Aerospace_Toolbox.
Troubleshoot this issue by visiting:
https://www.mathworks.com/support/lme/5
Diagnostic Information:
Feature: Aerospace_Toolbox
License path: C:\Users\ZZL_T\AppData\Roaming\MathWorks\MATLAB\R2024a_licenses\license_ZZL_TJFH_968398_R2024a.lic;C:\Users\ZZL_T\AppData\Roaming\MathWorks\MATLAB\R2024a_licenses;D:\MATLAB2024a\licenses\license.dat;D:\MATLAB2024a\licenses\license_ZZL_TJFH_968398_R2024a.lic;D:\MATLAB2024a\licenses\network.lic
Licensing error: -5,357.'
I am confused that it says "Cannot find a license for Aerospace_Toolbox", while the command is about Aerospace_Blockset.

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by