How to run path planning simulink model on Arduino due

1 view (last 30 days)
I would like to run this differential drive pure persuit simulink model on my Arduino Due robot as see exactly how good it is. I would also like to update the pose with GPS data. I tried running the code when hardware support package had been selected but this generated many error. I have not touched the model itself so that can not be the problem. I am waiting to get simulink coder from Matworks on a trial. I have had a blink working on the Arduino with Matlab and via simulink so that works.
Any pointers will be appreciated.

Answers (1)

Harshendra Shah
Harshendra Shah on 9 Apr 2020
You can run any simulink model on Arduno Hardware by refering the following documentation page:
You can open Path Planning Simulink model using the following command then follow the steps mentioned in the above documentation page:
open_system('pathPlanningSimulinkModel.slx')
I hope this helps.
  1 Comment
Maxwell Birley
Maxwell Birley on 9 Apr 2020
Hi
Thanks for your response. I followed your instructions. When I deployed the code I got 14 error messages
I have loaded very simple "blink" type programs from Simuling to the Arduino and they ran. However the pathfollowing examples are much more complex. I am trying to understand the basics of uploading a complex example that was not written for a Arduino and trying to run it. For example when you open the example you can vary so me parameters like the starting position and you can watch the output on a map.
how can this be achieved on the Arduino due ?
regards
Max

Sign in to comment.

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!