Function SimOneAPI::SetVehicleEvent¶
Defined in File SimOnePNCAPI.h
Function Documentation¶
-
bool SimOneAPI::SetVehicleEvent(const char *mainVehicleId, SimOne_Data_Vehicle_EventInfo *pEvent)¶
设置主车预警消息
Set vehicle event information.
此函数用于设置主车的事件信息,如预警或其他重要通知
This function is used to set event information for the main vehicle, such as warnings or other important notifications.
- 参数:¶
- const char *mainVehicleId¶
[in]
主车的ID
Id of the main vehicle.
- SimOne_Data_Vehicle_EventInfo *pEvent¶
[in]
车辆事件信息数据
Vehicle event information data.
- 返回:¶
如果事件信息设置成功,则返回true,否则返回false
Returns true if the event information is successfully set, false otherwise.