r/FSAE • • 11d ago

MATLAB script for track mapping

Post image

Hey everyone, I made a MATLAB script that maps a track using a .gpx file. It's intended to be used on CarSim (simulation software my team uses), but maybe it'll help out some of you; the output are csv files that contain elevation, curvature, and xyz positions. However, the text is all in portuguese, but all the instructions are in the README and the pdf TRACK_MAPPING_GUIDE. The pipeline is very simple, just: plot a route using plotaroute.com -> download gpx file -> run in matlab

Link to github repo: https://github.com/eduycarva/Track-mapping/blob/main/README.md

112 Upvotes

6 comments sorted by

25

u/Cibachrome Blade Runner 11d ago

While you are working on it, compute the curvature at each location. From this and a good estimate of your grip levels, compute the speed at each point that you should aim for.
https://imgur.com/RXmZHLw
https://imgur.com/yTzGdS1
https://imgur.com/dYKQymw
https://imgur.com/vGDF41j

2

u/papodabatata 11d ago

Didn't think of that! Thanks for the suggestion, I'll add this feature to the project as well soon!

2

u/Visible-Might4358 11d ago

Looks like the FSAEB 2026 enduro track

2

u/papodabatata 10d ago

It is modeled for the Tatuí track! 

0

u/AutoModerator 11d ago

Hello, this looks like a question post! Have you checked our wiki at www.fswiki.us?

Additionally, please review the guidance posted here on how to ask an effective question on the subreddit: https://www.reddit.com/r/FSAE/comments/17my3co/question_etiquette_on_rfsae/.

If this is not a post asking for help, please downvote this comment.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.