@Brian_Duvall wrote:
Hello,
I recently figured out how to convert the epoch time from my arduplane data flash logs in matlab. The problem is it looks like I was flying for four days! lol. I know the flight was no longer than 20 minutes. Aafter running the script below I just watch the HH part of the output and I see the hours incrmenting from zero to 24 four times over the flight. I will looking making sure the pixhawk knows the right time I guess.time_reference = datenum(‘1970’, ‘yyyy’);
time_matlab = (time_reference + GPS_Time)./ 8.64e7;
time_matlab_string = datestr(time_matlab, ‘yyyymmdd HH:MM:SS.FFF’)
Posts: 1
Participants: 1