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): The API & plugin code all seems correct, and other ElectricBoost data returns correct readings. Thanks for any help.
Ok, so the example plugin is missing one value, not sure what it does. An excerpt from my modified InternalsPlugin.hpp: 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...): (I know, my speed channel really needs more decimals... )
So yeah, I should have done more than a lap while testing, I might have worked that out hahaha Oh look! A screen freeze captured on the delta!
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.