I got data of a drone's position in an .srt file that I need to analyse. I'm attaching an example file in .txt format that shows how data is organized within.
I'm used to working with .csv files or other file formats that have some very simple delimeter to set every variable apart. However, I'm struggling with figuring out what functions should I use to read this.
I simply need to be able to extract the GPS coordinates of the drone's position. In the file, the lines where that data is located looks like this:
00:00:08,000 --> 00:00:09,000
HOME(-68.8723,-46.0144) 2022.01.01 11:11:11
ISO:100 Shutter:1000 EV:+1 Fnum:2.2
I'd need to extract the data that's located inside of GPS(...) and create Nx2 matrix that holds all the GPS coordinates of the file, where N is the number of data points.
Later on I might need to incorporate more data such as the Barometer info, but I think that if I could get some help in figuring out this part I could figure the rest out myself.