Please select Into the mobile phone version | Continue to access the computer ver.
Close
You need to log in before you can reply       Login | Register now

[Help] Getting time and date from broadcast data

Author: harold6 2017-5-4 04:33
1 203
Hello, I am using the onboard-sdk on a raspberry pi and Matrice 100 to get position information while flying. I am also trying to get date and time information which will be used for file naming and timestamping in the data stream. I am wondering how to get both from the API->BroadcastData. I can get the timestamp and position but not time and date. I know that the GPS info is all zeroed out for the Matrice 100. Thank you
Reply
Replies
ChrisJagielski
Look for the function "getTimeStamp" ... it's used in a few files like DJI_Link.cpp and DJI_APP.cpp.

Also perhaps you can just implement a counter in the file naming structure, that every time your application starts up it finds the newest log file in that directory and increments the new filename to start a new file.

Good luck!
- Chris
2017-5-24 00:02
You need to log in before you can reply Login | Register now

Quick Reply Back to top Back to list
Quick Reply Back to top Back to list