Function SimOneAPI::SetV2XInfoUpdateCB

Function Documentation

bool SimOneAPI::SetV2XInfoUpdateCB(void (*cb)(const char *mainVehicleId, const char *sensorId, SimOne_Data_V2XNFS *pDetections))

获得对应车辆编号V2X中的UPER编码之后的v2x消息更新回调

  • function: SetV2XInfoUpdateCB

  • brief: Register mainVehicle V2X UPER ASN Message CallBack

参数
  • mainVehicleId – Id of the main vehicle

  • cb[out] callback func applying for obu message of the traffic-vehicle param[out]: mainVehicleId: Id of the main vehicle sensorId: Id of the obu sensor pDetections: V2XASN data

返回

Success or not