Telemetry gathering

Use this forum to report bugs or ask for help

Moderator: kilo

Telemetry gathering

Postby danny321g » Fri Feb 26, 2016 7:26 pm


This is definite proof of my newbie status but here goes.

I'm trying to use Speed Dreams in a project for university, in which I'm hoping to gather telemetry data at set intervals and save the gathered data into a .txt file. This file would then be read by another program (LabView).

My question is could anyone guide me as to what files I'd need to find the current speed, current lap time, track position etc for the player controlled driver. Adding to that, once I've modified the necessary file(s), how would I then build this version of Speed Dreams that was modified?

Thanks in advance.
Posts: 2
Joined: Fri Feb 26, 2016 7:18 pm

Re: Telemetry gathering

Postby madbad » Sat Feb 27, 2016 8:49 pm

Hi Danny,
I'm Madbad from youtube...
I attach here a patch with the code we discussed (you should apply it to the current trunk source code of speed dreams and compile it)

Don't blame me for the bad quality of the code... As I stated before, this is a fast "hack" I've done that was intended for my personal use only but I will be glad if it can be of help to you too.

When you run a race with Speed Dreams compiled with this code you should find a "telemetry.txt" file in your Speed Dreams config folder,
on linux should be something like:
Code: Select all

You should be able to adjust the time/rate at with the data is gathered adjusting in
Code: Select all
src/libs/tgf/tgf.cpp src/libs/tgf/tgf.cpp

the value of this line
Code: Select all
if (elapsedTime > 0.1){

As it is now it log the data 10 times in a second.

I attach here also a "telemetry.html" page that I used to visualize the data (this should be put in the same folder as telemetry.txt)

If you have any question feel free to ask.
Cheers Madbad

Here you can download the files ( I was unable to attach them here on the forum) ... metry.diff
User avatar
Posts: 118
Joined: Sat Jan 22, 2011 3:45 pm

Re: Telemetry gathering

Postby danny321g » Sat Feb 27, 2016 9:36 pm

Thanks a lot for this, it's a big help and I'll be sure to give you credit for this code to anyone who I show it to

I will message back later to update you on my progress (I have also given you a backstory in an email)

Thanks again
Posts: 2
Joined: Fri Feb 26, 2016 7:18 pm

Return to Problems, Fixes & Help

Who is online

Users browsing this forum: No registered users and 5 guests