Exemplo n.º 1
0
 public bool StartTracker(PSMoveTrackerExposure exposure)
 {
     if (_camera.Handle == IntPtr.Zero)
     {
         _camera.Handle = PsMoveApi.psmove_tracker_new_with_camera(_camera.TrackerId);
         ConsoleService.Write(string.Format("[Tracker, {0}] Started.", _camera.GUID));
         PsMoveApi.psmove_tracker_set_exposure(_camera.Handle, exposure);
         // full led intensity
         PsMoveApi.psmove_tracker_set_dimming(_camera.Handle, 1f);
         _camera.Fusion = PsMoveApi.new_PSMoveFusion(_camera.Handle, 1.0f, 1000f);
     }
     return(_camera.Handle != IntPtr.Zero);
 }