mikeemoo / dji-log-parser

73 stars 29 forks source link

Flytrex CSV #7

Open rodrigopolo opened 8 years ago

rodrigopolo commented 8 years ago

Nice work you have done, but I can't figure out how to create a CSV that comply with the Flytrex CSV "standard", the CSV have to look something like this:

latitude,longitude,altitude(feet),ascent(feet),speed(mph),distance(feet),time(millisecond),datetime(utc),satellites,voltage(v),max_altitude(feet),max_ascent(feet),max_speed(mph),max_distance(feet)
14.5429408058,-90.5219997482,4800.20565465,336.2861,20.9425874509,300.40625434,334100.0,2016-07-23 22:50:45.288000,19,15.284,4801.18990665,337.270352,20.9425874509,300.40625434
14.5429477414,-90.5220156858,4800.53373865,336.614184,20.7372902822,306.540670157,334300.0,2016-07-23 22:50:45.590000,19,15.284,4801.18990665,337.270352,20.9425874509,306.540670157

It has to contain this data:

latitude                14.5429408058
longitude               -90.5219997482
altitude(feet)          4800.20565465
ascent(feet)            336.2861
speed(mph)              20.9425874509
distance(feet)          300.40625434
time(millisecond)       334100.0
datetime(utc)           2016-07-23 22:50:45.288000
satellites              19
voltage(v)              15.284
max_altitude(feet)      4801.18990665
max_ascent(feet)        337.270352
max_speed(mph)          20.9425874509
max_distance(feet)      300.40625434

I reviewed your code but I'm unable to find the get functions/methods for some of the required column values.