How to enable commander and navigator modules in uav toolbox

조회 수: 7 (최근 30일)
종원 이
종원 이 2021년 8월 29일
댓글: Ankur Bose 2023년 5월 8일
Hello, I have some question about uav toolbox.
As far as I understand, when I want to upload my custom position&attitude controller in uav I have to upload custom startup script and it kills some modules to prevent collision with my custom controller algorithm which are Commander module and Navigator Module, etc.
There are methods that enable suppressed modul, MAVLINK, but there are no introduced method to re-enable Commander module and Navigator Module.
If I cannot enable commander and navigator module, then does it mean I cannot upload planned mission and select vehicle type when I upload my custom flight algorithm?
Is there any method upload my custom algorithm without any functional loss?
Thank you very much.

채택된 답변

Ankur Bose
Ankur Bose 2021년 8월 30일
Till R2021a, we provide the custom startup script to disable commander and navigator modules to avoid potential interference of these modules with Simulink designed controller. If you are looking forward to upload missions to vehicle, all the functionalities might not work without commander and navigator.
To enable commander, navigator (and consequently all modules on PX4), you can migrate to using the default startup script rcS with a few modifications from the custom startup script. To enable use of rcS:
  1. Modify the rcS script that is available in 'ROMFS/px4fmu_common/init.d' path to add the line at the end 'px4_simulink_app start'. This line starts the Simulink module on Pixhawk.
  2. make clean the firmware. Run Hardware setup screens to build PX4 Firmware.
  3. Remove the custom startup script from SD card.
  4. Upload firmware from hardware support package. You should get all modules from PX4 now.
In R2021b, we have provided an additional workflow to automate this process.
  댓글 수: 4
Hasan Khanzada
Hasan Khanzada 2023년 5월 6일
i also have the same Question and need further clarity on this:
There is one confusion in your reply. If i have choosed option Design Flight Controller Algorithm in Simulink during Hardware setup process and in subsequent steps Select default startup script rCS then:
by default Only Position, Attitude and Rate Controller will be disabled while rest of the modules will remain enables (Including Commander and Navigator) ?
or
Do i need to make additional changes to rcs to keep Commander and Navigator Modules enabled ?
Ankur Bose
Ankur Bose 2023년 5월 8일
The commander and navigator modules are never disabled. If you chose "Design Flight Controller Algorithm in Simulink", only the controllers modules are disabled

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by