Explanation of log data please!

I've been running the on board datalogger quite a bit lately and it seems to be working for the most part, but there's a lot of stuff that doesn't make sense.

For example, the GPS time data is difficult to decipher.  According to the datalogging help page, the time value is the "Time of the week (UTC)" in milliseconds.  What on earth does this mean?  The GPS start time value is 46,017,250, which corresponds to 12.78 hours (assuming that number is actually in milliseconds...), but I started datalogging on Tuesday May 29th at 16:50, so there's no way that the beginning of the week was 12 hours ago.

Also, I left the datalogger running overnight until 09:04 and the end value is 57,847,500, which indicates that the logger only ran for 11,830,250ms (equal to 3.29 hours).  I noticed that the logfile had "wrapped around" in memory when I downloaded it, so it seems like there's a maximum amount of time that the logger can actually log before overwriting data.  How can I determine the time and date of my flights from this data?  Or will I have to log it the old-fashioned way (pen and paper)?

I have other questions too, but I'd like to start with this for now.  Could anyone please explain?

Thanks!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Okay, I think I have it figured out.

    I looked up the GPS datasheet, and on page 14 it suggests that the time is output in the format hhmmss.sss - I examined the numbers I was getting using this format, and it still didn't make sense - the last data I got from the GPS time unit was 64582514, which would suggest 6 hours, 45 minutes, 82 seconds, and 514 milliseconds.  Obviously 82 seconds doesn't work.

    However, examining the numbers as just milliseconds again, I found that 64582514/(60*60*1000) = 17.9 hours.  I got the data at about 10:55 PDT, which corresponds to 17:55 UTC.  Looks like you were right, Michael! (I mean, of course, you pretty well built Ardupilot ;)

    So thanks very much for the help!  May I humbly suggest that the page I referenced in my first post be updated to more accurately reflect the fact that time is from the beginning of the day and not the week?

    And just in case we thought the issue was resolved, I wanted to clarify another quirk about the logged time - I noticed that the GPS time data doesn't refresh at a consistent 10Hz. It looks like it takes three readings at once, then two more a few dozen ms later, and then three more, and then two more, and then it has counted one full second and the cycle starts again.  Is this something that anyone else has noticed?

    All the tips and suggestions are really appreciated, thanks!

  • Developer

    to expand on this, the time on the mtk is recorded as milliseconds from midnight based on utc time.

  • It's known the logs are only good for maybe 3.5-4 hours based on the size of the high speed data card inlcuded. Normal flash isn't fast enough, thus why it's a special card.

    Next, the logs are information from the sensors, so the GPS firmware is responsible for the unique time format.

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @donkey_car: Human-scale Donkey Car! Hope this makes it to a @diyrobocars race https://www.youtube.com/watch?v=ZMaf031U8jg
Saturday
DIY Robocars via Twitter
Saturday
DIY Robocars via Twitter
Jun 16
DIY Robocars via Twitter
RT @GrantEMoe: I won my first @diyrobocars @donkey_car virtual race! Many thanks to @chr1sa @EllerbachMaxime @tawnkramer and everyone who m…
Jun 13
DIY Robocars via Twitter
RT @gclue_akira: JetRacerで自動走行したコースを、InstantNeRFで再構築。データセットは別々に収集 #jetracer #instantNeRT https://t.co/T8zjg3MFyO
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: SPC 3.0 Now the motor also works. This car is doable. I just need to design a deck to mount my compute and sensors. http…
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: My new car SPC 3.0. https://t.co/CKtkZOxeNQ
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: High speed at @diyrobocars thanks @EdwardM26321707 for sharing the video https://t.co/o4317Y2U1S
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: Today at @RAMS_RC_Club for @diyrobocars. Used @emlid RTK GPS and @adafruit @BoschGlobal IMU. Lap time 28s https://t.co/R…
May 28
DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
More…