Getting wrong tire-temps and brake-temps

Discussion in 'Plugins' started by Tomhah, Feb 26, 2014.

  1. Tomhah

    Tomhah Registered

    Joined:
    Mar 16, 2013
    Messages:
    8
    Likes Received:
    0
    Hi,

    I am working on a plugin that runs through the browser with the modern web-technology - Websockets. It works perfectly fine, but the data I am getting from the sample plugin appears to be wrong, compared to the data displayed in-game.
    The tire temps I am getting are like: 298.1
    And brake-temps: 302.1

    This is way too high, as it in-game shows:
    Tire-temps: 25
    Brake-temps: 29
    (I havent driven a single meter yet, thats why the temps are so low)

    I am using the Renault Clio Cup Mod.

    I write the temps out to a file like this:
    fprintf(fo, left:%f", frontLeft.mTemperature[0]);
    Where frontLeft is: const TelemWheelV01 &frontLeft = info.mWheel[0];

    Any ideas?
     
  2. TechAde

    TechAde Registered

    Joined:
    Oct 13, 2010
    Messages:
    606
    Likes Received:
    38
    Temperatures from the plugin are in Kelvins?

    Sent from my GT-I9300 using Tapatalk
     
  3. Tomhah

    Tomhah Registered

    Joined:
    Mar 16, 2013
    Messages:
    8
    Likes Received:
    0
    Aaah, yeah, seems like that! Thanks!! :)

    In the code though, it is commented like this: double mBrakeTemp; // Celsius
    So I guess it's an outdated comment ;-)
     

Share This Page