views:

45

answers:

0

Hi, I'm writting and small app to get the course from the gps. I've tested it outdoor with my car, and newLocation.course always gives even numbers, 0, 2, 4, ... 180, 182, ... 356, 358. I've set distancefilter to none and accuracy to best.

¿Is this a known issue of corelocation?. Am I doing something wrong?

Here's is the code

  • (void)locationManager: (CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {

    if ([self isValidLocation:newLocation withOldLocation:oldLocation]) {

    gpsHeading = newLocation.course; course.text = [NSString stringWithFormat:@"%03.0f", gpsHeading];

    } }

Thanks

Beltrán