필터 지우기
필터 지우기

UAV Toolbox Support Package Alternative?

조회 수: 4 (최근 30일)
Tristan
Tristan 2023년 6월 5일
답변: Arun Mathamkode 2024년 4월 3일
So as shown in the documentation, this package only supports PX4 1.12.3. If I want to use PX4 1.14, would I be able to still just use the embedded coder for the controller and not actually use the package?
Basically, the bottom line is that I have a controller designed in MATLAB. We want to put this controller onto a multirotor device, but using PX4 1.14. I am wondering if there is a way to get this code onto the flight controller using the embedded coder, since using the full package doesn't sound feasible.
  댓글 수: 2
Diwakar Diwakar
Diwakar Diwakar 2023년 6월 5일
Either you can manually generate code from your MATLAB controller using the Embedded Coder or another option is to communicate with the PX4 flight controller using the MAVLink protocol. MATLAB has support for MAVLink communication through the mavlinkio interface. You can establish a MAVLink connection between MATLAB and the PX4 flight controller running the desired version of the PX4 firmware (1.14 in your case). You can then send control commands from MATLAB to the flight controller and receive telemetry data for closed-loop control.
Tristan
Tristan 2023년 6월 6일
Is that able to communicate fast enough/avoid latency being too high that avoids any undesired behavior? For example, what if the trajectory has a really sharp turn, will the communication delays be too high such that the control action is for a position that is too far off?
Potentially we could also have MATLAB running onboard on the companion computer, but I don't know how realistic that is?

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

채택된 답변

Arun Mathamkode
Arun Mathamkode 2024년 4월 3일
The R2024a release of UAV Toolbox Support Package for PX4 Autopilots now supports PX4 Firmware v1.14

추가 답변 (1개)

Ankur Bose
Ankur Bose 2023년 7월 14일
편집: Ankur Bose 2023년 7월 14일
We are currently working on supporting PX4 1.14 in UAV Toolbox support package for PX4 Autopilots. We will let you know when the feature is live
  댓글 수: 1
Tristan
Tristan 2023년 7월 14일
Any estimate for when that might be?

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by