Adding header and terminator to PX4 serial receive block

1 回表示 (過去 30 日間)
Ali Barari
Ali Barari 2021 年 12 月 3 日
コメント済み: Anthony Comer 2023 年 9 月 29 日
Hi,
I want to send data with header and terminator to Pixhawk board over radio telemetry. In the current version, PX4 serial receive block doesn't accept header and terminator, so i don't receive data on the Pixhawk 4 properly.
How can get the PX4 serial receive block to accept header and terminator?
  1 件のコメント
Anthony Comer
Anthony Comer 2023 年 9 月 29 日
Ali,
Were you ever able to receive the data on the Pixhawk successfully?

サインインしてコメントする。

回答 (1 件)

Arun Mathamkode
Arun Mathamkode 2021 年 12 月 6 日
PX4 Serial read and write blocks enables basic data write and read through Pixhwak serial interface. Although, the header and terminator is not supported out of the box, you can always model the header or terminator logic around these blocks. Have a look at this example, which implement a header logic with the PX4 serial blocks.
  4 件のコメント
Ali Barari
Ali Barari 2021 年 12 月 8 日
Thanks Arun,
I installed both "Simulink Support Package for Arduino Hardware" and "Embedded Coder Support Package for Texas Instruments C2000 Processors" which should have the Protocol Decoder block. After i installed them, i couldn't find that block in my simulink library. It's strange!
Arun Mathamkode
Arun Mathamkode 2021 年 12 月 9 日
編集済み: Arun Mathamkode 2021 年 12 月 9 日
This block is only available from R2021b. Are you using any older release? As per the documentation it should be avaialable in the ' Common' library under Simulink Support Package for Arduino Hardware. Also check if it is coming up when you search for it in the Simulink canvas.

サインインしてコメントする。

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by