Hi i am undertaking research which involves analysing human driving behaviour in the speed-dreams-2 simulator. I am using a logitech momo steering wheel and have managed to log some raw data from the wheel straight off the usb port (independent from the simulator). Now i wish to log continuous values of throttle/brake/steer from the simulator as a human player completes 1 lap. The values i am after are the ones that speed-dreams-2 is using but i don't know how to continuously extract these values as someone is playing the game. I opened up the human.cpp file and found this section of code which looks useful for my goal:
RtTelemNewChannel("Dist", &HCtx[idx]->distToStart, 0, 0);
RtTelemNewChannel("Ax", &car->_accel_x, 0, 0);
RtTelemNewChannel("Ay", &car->_accel_y, 0, 0);
RtTelemNewChannel("Steer", &car->ctrl->steer, 0, 0);
RtTelemNewChannel("Throttle", &car->ctrl->accelCmd, 0, 0);
RtTelemNewChannel("Brake", &car->ctrl->brakeCmd, 0, 0);
RtTelemNewChannel("Gear", &HCtx[idx]->gear, 0, 0);
RtTelemNewChannel("Speed", &car->_speed_x, 0, 0);
Ideally i would like to log these values against a time value while someone is racing. Any suggestions/ideas would be appreciated i will continue to look into this in the meantime.