GPS signal into simulink via arduino

3 ビュー (過去 30 日間)
Valerio
Valerio 2012 年 2 月 8 日
回答済み: Maitreyee Mordekar 2018 年 4 月 5 日
Hi to all! I'm new here..I'm Valerio and i'm pleased to be part of this forum.
My problem is: I have an autopilot built in Simulink and loaded on my arduino mega board. I have several sensors attached to the board and there is also a GPS rx/tx.
Now i would achieve this goal: I would transfer the NMEA data arriving from the GPS antenna into Simulink with a blockset (that I cannot find until now) having the three coordinates as output.
Is it possible in your opinion? If yes, can you describe the right procedure in details?
I thank everyone for the help.
VZ

回答 (3 件)

Kaustubha Govind
Kaustubha Govind 2012 年 2 月 8 日
I am not aware of any blockset directly produced by MathWorks that fulfills this requirement. However, there may be 3rd party blocks that I am not aware of. Also, what is the exact model of the sensor you are doing? You might want to do a web search to see if you can find a Simulink-based block driver for it. If not, you can follow the technique decsribed in Integrating Device Drivers to integrate existing C/C++ drivers as a Simulink block.

Valerio
Valerio 2012 年 2 月 23 日
Thank you for the kind answer; So your opinion is that i should create a new block through S-function where i describe what are inputs, outputs, and the transformation in the middle. Is this correct? Thak you for helping me.
VZ
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 2 月 24 日
If the transformation is possible with blocks from the Simulink library, then you need S-function driver blocks for the inputs and outputs only.

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


Maitreyee Mordekar
Maitreyee Mordekar 2018 年 4 月 5 日
Hello,
There is an application example to Read Serial Data from a GPS Shield Using Arduino Hardware for Simulink available from R2018a: https://www.mathworks.com/help/supportpkg/arduino/examples/read-serial-data-from-a-gps-shield-using-arduino-hardware.html
This is just in case anyone is looking for a similar solution.

カテゴリ

Help Center および File ExchangeDevice Driver Blocks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by