Function SimOneAPI::GetControlMode

Function Documentation

bool SimOneAPI :: GetControlMode ( const char * mainVehicleId , SimOne_Data_Control_Mode * pControlMode )

获取车辆控制模式

Get the vehicle control mode.

此函数用于获取主车的当前控制模式

This function is used to retrieve the current control mode of the main vehicle.

参数 :
  • mainVehicleId [in]

    主车的ID

    Id of the main vehicle.

  • pControlMode [out]

    车辆控制模式

    Vehicle control mode.

返回 :

如果成功获取控制模式,则返回true,否则返回false

Returns true if the control mode is successfully retrieved, false otherwise.