mElectricBoostMotorState data from latest API plugin does not return correct value

Discussion in 'Technical & Support' started by svictor, Mar 22, 2023.

  1. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    935
    Likes Received:
    6,342
    Hello,

    Recently I have been testing with some of the new sharedMemory API data, and one of the data mElectricBoostMotorState does not return the value range that is suggested by the comment:
    But it instead returns a series of random numbers as follows(tested on latest game version):
    [​IMG]

    The API & plugin code all seems correct, and other ElectricBoost data returns correct readings.

    Thanks for any help.
     
  2. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    Ok, so the example plugin is missing one value, not sure what it does. An excerpt from my modified InternalsPlugin.hpp:

    upload_2023-3-25_17-27-15.png


    This produces the right values (I noticed BatteryCharge was reported as MotorTorque, and for some reason that eludes me adding the missing double has fixed the apparent padding error for the motor temps...):

    upload_2023-3-25_17-25-32.png

    (I know, my speed channel really needs more decimals... :D)
     
    Lenniepen and Seven Smiles like this.
  3. Alex Sawczuk

    Alex Sawczuk Administrator Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    851
    Likes Received:
    971
    Hmm odd, the unknown one should be deltabest
     
    Lazza likes this.
  4. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    I love the way you just pop up with info like this :p
     
  5. Alex Sawczuk

    Alex Sawczuk Administrator Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    851
    Likes Received:
    971
    Well I checked quickly from my phone ;)
     
  6. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    So yeah, I should have done more than a lap while testing, I might have worked that out hahaha

    upload_2023-3-25_17-48-49.png

    Oh look! A screen freeze captured on the delta! :oops:
     
  7. Lenniepen

    Lenniepen Registered

    Joined:
    Oct 5, 2010
    Messages:
    225
    Likes Received:
    38
    Since Lazza updated DAMPlugin, I've tested it with the BTCC cars.
    I was hoping Motor State would also indicate if p2p was available while driving. Like for BTCC, p2p is only available (blue light on dashboard) if several conditions are true: >60% throttle, >130kph, no p2p-button press within the last 5 seconds.
    But Motor State only shows 1 (inactive) when p2p is not active, there is no difference between unavailable+inactive and available+inactive. Value 0 (unavailable) is propably used non hybrid cars.
     

Share This Page