DJI Mavic, Air and Mini Drones
Friendly, Helpful & Knowledgeable Community
Join Us Now

Plot the track of a DJI Drone using CSV

Good morning,
Any suggestion?
Moreover.. is possible to transform the graph of values' sensors into a csv file?
 
Good morning,
Any suggestion?
Moreover.. is possible to transform the graph of values' sensors into a csv file?
If you are using CsvView try using the Export Csv option

1679923506970.png
 
Thank you so much.
I was not so clear: Is it also possible to export the values of motors? Or are they calculated using indirect formulas?
Because into these csv I dont see any kind of Frequency of the motors but I see these following headers:

Clock:Tick#,Clock:eek:ffsetTime,IMU_ATTI(0):Longitude,IMU_ATTI(0):Latitude,IMU_ATTI(0):press:D,IMU_ATTI(0):alti:D,IMU_ATTI(0):relativeHeight:C,IMU_ATTI(0):absoluteHeight:C,IMU_ATTI(0):numSats,IMU_ATTI(0):roll:C,IMU_ATTI(0):pitch:C,IMU_ATTI(0):yaw:C,IMU_ATTI(0):accelX,IMU_ATTI(0):accelY,IMU_ATTI(0):accelZ,IMU_ATTI(0):accelComposite:C,IMU_ATTI(0):gyroX,IMU_ATTI(0):gyroY,IMU_ATTI(0):gyroZ,IMU_ATTI(0):gyroComposite:C,IMU_ATTI(0):velN,IMU_ATTI(0):velE,IMU_ATTI(0):velD,IMU_ATTI(0):velComposite:C,IMU_ATTI(0):velH:C,IMU_ATTI(0):magX,IMU_ATTI(0):magY,IMU_ATTI(0):magZ,IMU_ATTI(0):magMod:C,IMU_ATTI(0):temperature,IMU_ATTI(0):yawUnWrapped:C,IMU_ATTI(0):tiltInclination:C,IMU_ATTI(0):tiltDirectionEarthFrame:C,IMU_ATTI(0):tiltDirectionBodyFrame:C,IMU_ATTI(0):yaw360:C,IMU_ATTI(0):magYaw:C,IMU_ATTI(0):Yaw-

Thank you in advance
 
Thank you so much.
I was not so clear: Is it also possible to export the values of motors? Or are they calculated using indirect formulas?
Because into these csv I dont see any kind of Frequency of the motors but I see these following headers:

Clock:Tick#,Clock:eek:ffsetTime,IMU_ATTI(0):Longitude,IMU_ATTI(0):Latitude,IMU_ATTI(0):press:D,IMU_ATTI(0):alti:D,IMU_ATTI(0):relativeHeight:C,IMU_ATTI(0):absoluteHeight:C,IMU_ATTI(0):numSats,IMU_ATTI(0):roll:C,IMU_ATTI(0):pitch:C,IMU_ATTI(0):yaw:C,IMU_ATTI(0):accelX,IMU_ATTI(0):accelY,IMU_ATTI(0):accelZ,IMU_ATTI(0):accelComposite:C,IMU_ATTI(0):gyroX,IMU_ATTI(0):gyroY,IMU_ATTI(0):gyroZ,IMU_ATTI(0):gyroComposite:C,IMU_ATTI(0):velN,IMU_ATTI(0):velE,IMU_ATTI(0):velD,IMU_ATTI(0):velComposite:C,IMU_ATTI(0):velH:C,IMU_ATTI(0):magX,IMU_ATTI(0):magY,IMU_ATTI(0):magZ,IMU_ATTI(0):magMod:C,IMU_ATTI(0):temperature,IMU_ATTI(0):yawUnWrapped:C,IMU_ATTI(0):tiltInclination:C,IMU_ATTI(0):tiltDirectionEarthFrame:C,IMU_ATTI(0):tiltDirectionBodyFrame:C,IMU_ATTI(0):yaw360:C,IMU_ATTI(0):magYaw:C,IMU_ATTI(0):Yaw-

Thank you in advance
The header list presented is obviously truncated. There are several headers with the prefix "Motor:"; e.g. Motor:Speed:RFront
 
You are literally Right!
I don't know why it showed me on splitted lines, probably I pressed some keys unintentionally.
I try to split the complete .dat file into single flights. Hope to find motors' speed equal to 0 in that case it would be easy to split the entire dataset!

Thank you so much
 
Good morning to everyone,
I looked at xSpeed and a I was wondering: Why Don't I have positive values?? This is xSpeed_[MPH] column.
So If I wanna to compute the velocity along the north/south is it better to use .dat features instead of the txt ones???

df['xSpeed_[MPH]']
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
-0.2
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.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instead, watching .dat files, I did a query and I got these column for VelN -> ['IMU_ATTI(0):velN', 'IMUCalcs(0):velN:C', 'IMUCalcs(0):diffVelN:C', 'IMU_ATTI(1):velN', 'IMUCalcs(1):velN:C', 'IMUCalcs(1):diffVelN:C']
But only IMU_ATTI(0):velN and IMU_ATTI(1):velN have number values. The other columns contain only NaN.
What is the different between (0) and (1)?

Thank you!
 
Last edited:
Good morning to everyone,
I looked at xSpeed and a I was wondering: Why Don't I have positive values?? This is xSpeed_[MPH] column.
So If I wanna to compute the velocity along the north/south is it better to use .dat features instead of the txt ones???

df['xSpeed_[MPH]']
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
-0.2
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
-0.2
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0

Also ySpeed rows have only 0 or negative values.
Instead, watching .dat files, I did a query and I got these column for VelN -> ['IMU_ATTI(0):velN', 'IMUCalcs(0):velN:C', 'IMUCalcs(0):diffVelN:C', 'IMU_ATTI(1):velN', 'IMUCalcs(1):velN:C', 'IMUCalcs(1):diffVelN:C']
But only IMU_ATTI(0):velN and IMU_ATTI(1):velN have number values. The other columns contain only NaN.
What is the different between (0) and (1)?

Thank you!
The drone is moving south when xSpeed is negative.
 
  • Like
Reactions: PilotNovel
The drone is moving south when xSpeed is negative.
Ok I got it, thank you so much!

Instead regarding last question which is:

I was looking at .dat file and I did a query (VelN) and I got these columns-> ['IMU_ATTI(0):velN', 'IMUCalcs(0):velN:C', 'IMUCalcs(0):diffVelN:C', 'IMU_ATTI(1):velN', 'IMUCalcs(1):velN:C', 'IMUCalcs(1):diffVelN:C']
But only IMU_ATTI(0):velN and IMU_ATTI(1):velN have number values. The other columns contain only NaN.
What is the different between (0) and (1)?
 
Last edited:
Another question about csv and the correlation between .dat and .txt files.
How can I merge the data together (flight by flight)? I was thinking with timestamp but the .dat file only has "clock".
Any suggesion is very useful! Thank you
 
what you seems to have looked at is a mobile device created .txt log visualized through PhantomHelp... that's not raw sensor data, nearly all in that log is calculations, you need a .dat log to access raw data from the sensors.





 
Last edited:
  • Like
Reactions: PilotNovel
what you seems to have looked at is a mobile device created .txt log visualized through PhantomHelp... that's not raw sensor data, nearly all in that log is calculations, you need a .dat log to access raw data from the sensors.





Yeah I used CsvView to display both .txt and .dat files. Isn't it right?
 

DJI Drone Deals

New Threads

Forum statistics

Threads
134,495
Messages
1,595,629
Members
163,019
Latest member
Mr. Jeff
Want to Remove this Ad? Simply login or create a free account