Function SimOneAPI::SetGpsUpdateCB

Function Documentation

bool SimOneAPI::SetGpsUpdateCB(void (*cb)(const char *mainVehicleId, SimOne_Data_Gps *pGps))

主车GPS更新回调

  • function: SetGpsUpdateCB

  • brief: Register the callback func applying for GPS info

参数

cb[in] GPS data update callback function param[out] mainVehicleId: Id of the main vehicle pGps: GPS data: position, rotation, velocity, throttle, brake, steering, gear, acceleration, angular velocity, wheel-speed, engin-speed, odometer, …etc

返回

Success or not