Results 1 to 5 of 5

Thread: Having a problem getting Free drive to work

  1. #1
    Etablierter skobbler
    Join Date
    29.08.2014
    Posts
    18

    Having a problem getting Free drive to work

    We have set our project/app to run in Real mode, however when the user taps 'Start Free Drive' the app seems to revert to simulation mode and not run the free drive showing correct location and speed.
    Normal navigation with a route runs fine.

  2. #2
    Dev platform evangelist dandronic's Avatar
    Join Date
    31.03.2014
    Posts
    177
    I'm not sure I understand - in theory the free drive inside the demo projects (the Car navigation UI demo) should automatically enter "simulation mode" by replaying a set of prerecorded positions (from a log file).

    Is this your problem? That the system is entering simulation mode when pressing free drive? If yes - just look for the
    Code:
    self.configuration.navigationType = SKNavigationTypeSimulationFromLogFile;
    calls (or similar) and remove them.

    If this does not answer your question, could you please detail what your desired output should be and what the actual output is?

  3. #3
    Etablierter skobbler
    Join Date
    29.08.2014
    Posts
    18
    In our app we are using map in the offline mode so we have set connectivity mode to offline and are using pre bundled map files. We have used only NavigationTypeReal as the default mode and in both Real and Simulation once a user taps the Start Free Drive Button in Navigation the app goes to Free Drive but does not track the user position or the speed. Our code for FreeDrive button click is :-
    - (void)freeDriveButtonClicked {
    _menu.navigationStyle = YES;
    if (self.configuration.navigationType == SKNavigationTypeReal) {
    _menu.showSpeedbuttons = NO;
    } else {
    _menu.showSpeedbuttons = YES;
    }

    _centerButton.hidden = YES;
    _longTapInfoLabel.hidden = YES;
    _menu.frameY = 140 * kSizeMultiplier;

    if (self.configuration.routeType == SKRoutePedestrian) {
    self.configuration.navigationType = SKNavigationTypeSimulationFromLogFile;
    self.configuration.simulationLogPath =
    [[NSBundle mainBundle] pathForResource:@"Seattle" ofType:@"log"];
    }

    [self removeAnnotations];
    [self.navigationManager startFreeDriveWithConfiguration:self.configuration];
    self.navigationManager.mainView.hidden = NO;
    self.navigationManager.mainView.isUnderStatusBar =
    [UIDevice majorSystemVersion] >= 7;
    self.navigationController.navigationBarHidden = YES;
    // [self menuButtonClicked];
    }
    Last edited by outbacktouring; 01.07.2015 at 04:46.

  4. #4
    Etablierter skobbler
    Join Date
    29.08.2014
    Posts
    18
    Thanks, that fixed it. Brilliant support once again from skobbler. Appreciate it.

  5. #5
    Dev platform evangelist dandronic's Avatar
    Join Date
    31.03.2014
    Posts
    177
    We're glad to hear that you've found the issue

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •