Function SimOneAPI::GetDriverControl
Defined in File SimOnePNCAPI.h
Function Documentation
-
bool SimOneAPI::GetDriverControl(const char *mainVehicleId, SimOne_Data_Control *pControl)
获取SimOneDriver控制信号
Get SimOneDriver drive control signals.
此函数用于获取SimOneDriver提供的主车驾驶控制数据
This function is used to retrieve the main vehicle's driving control data provided by SimOneDriver.
- 参数:
mainVehicleId -- [in]
主车的ID
Id of the main vehicle.
pControl -- [out]
由SimOneDriver提供的车辆控制数据
Vehicle control data from SimOneDriver.
- 返回:
如果成功获取控制数据,则返回true,否则返回false
Returns true if the control data is successfully retrieved, false otherwise.