Hello NV team,
I am trying to leverage the “vehicleio” and “vehicleio_plugin” examples in DW 10.0 SDK, but we need to add a few new elements on top of the predefined “dwVehicleIOState” structure, I am wondering is that possible?
I did a quick test to add new elements in “dwVehicleIOState” structure by modifying “VehicleIO.h” file, and assigning value to them in “vehicleio_plugin” drive code.
The modified codes can be compiled successfully without problem, but at runtime it doesn’t seem the value of the new added elements can be passed over from the “vehicleio_plugin” layer back to “vehicleio” sample app.
I suspect the “dwVehicleIODriver_consume” or “dwVehicleIO_getVehicleState” routines might have filtered out the new elements added in “dwVehicleIOState” structure, but couldn’t debug further without the source code of “dwVehicleIODriver_consume” and “dwVehicleIO_getVehicleState” etc.
Could you please help the advise what is the best way to add new elements in “dwVehicleIOState” structure? Or any other approach can pass data structure from “vehicleio_plugin” layer back to “vehicleio” sample app?