Function SimOneAPI::GetGps

Function Documentation

bool SimOneAPI :: GetGps ( const char * mainVehicleId , SimOne_Data_Gps * pGps )

获取主车GPS信息.

Get main vehicle GPS

此函数用于获取主车当前GPS信息 This function is used to get current GPS data of the main vehicle

参数 :
  • mainVehicleId [in]

    主车的ID

    Id of the main vehicle

  • pGps [out] GPS消息 GPS data

返回 :

如果成功获取GPS数据,则返回true,否则返回false

Returns true if the GPS data is successfully retrieved, false otherwise