Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: TinyGPS++ delay (smartdelay)

  1. #1
    Senior Member
    Join Date
    Jun 2014
    Posts
    245

    TinyGPS++ delay (smartdelay)

    Is anyone here familiar with the way the smartdelay works in TinyGPS?
    When I set smartDelay(100); I get about 5 records per second. This is in a while(gps_port.available());
    With smartDelay(10); I get about 10 records per second.
    The problem is that all those records contain the same GPS position even while moving. So at a speed of 60km/h or 1km/min or 17m/s, it skewes the data.
    I would like to get a new position every 100ms, but I'm not sure how to go about doing that. It seems as if there's a default of 1 position per 1000ms set somewhere, but I don't have any delays in my code.
    I may try deleting smartDelay altogether, but it's pretty hard to test without actually moving

  2. #2
    Senior Member
    Join Date
    Jun 2014
    Posts
    245
    I'm now wondering if the baudrate (9600) or something could be bottlenecking the update. Lots of testing to do tomorrow.

  3. #3
    Member
    Join Date
    Sep 2015
    Location
    Mechelen, Belgium
    Posts
    24
    Hi Foyd,

    hmm, one thing comes to mind, what is the default update rate of your GPS?
    I use the Adafruit Ultimate GPS breakout boards and they default to 1Hz.

    Regards, Otto.

Posting Permissions

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