Function SimOneAPI::SetSignalLights
Defined in File SimOnePNCAPI.h
Function Documentation
-
bool SimOneAPI::SetSignalLights(const char *mainVehicleId, SimOne_Data_Signal_Lights *pSignalLights)
设置车辆信号灯状态
Set signal lights for the vehicle.
此函数用于设置主车的信号灯状态,如转向灯
This function is used to set the signal light status of the main vehicle, such as turn signals.
- 参数:
mainVehicleId -- [in]
主车的ID
Id of the main vehicle.
pSignalLights -- [in]
车辆信号灯数据
Vehicle signal light data.
- 返回:
如果信号灯状态设置成功,则返回true,否则返回false
Returns true if the signal light status is successfully set, false otherwise.