Function SimOneAPI::SetDrive
Defined in File SimOnePNCAPI.h
Function Documentation
-
bool SimOneAPI::SetDrive(const char *mainVehicleId, SimOne_Data_Control *pControl)
主车控制
Set vehicle drive control.
此函数用于设置主车的驾驶控制数据,包括速度、方向等
This function is used to set the drive control data for the main vehicle, including speed, direction, etc.
- 参数:
mainVehicleId -- [in]
主车的ID
Id of the main vehicle.
pControl -- [in]
车辆控制数据
Vehicle control data.
- 返回:
如果控制设置成功,则返回true,否则返回false
Returns true if the control setting is successful, false otherwise.