Skip to content

mahowik/multiwiiDataLogger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

multiwiiDataLogger

SDCard data logger for MW based quadrocopter via the serial interface

This is the first version which already works. I did some flight recording with it and it does not affect the flight controller too much to drop the cycle times.

What you need to get it to work is e.g. arduino pro mini and an SPI SD card writer (http://arduino.cc/de/Reference/SD). You just need to connect one serial from the flight controller to the serial of the arduino board (serial 0 if it has more serial ports). The data logger will create a log directory after each start which will have a counter. So first start will log to log_0, the next start to log_1 and so on. These folder contain the log files. For example log files see the example directory. These example files are actual recorded flight data from my quad (just the GPS data is no real flight data).

The logger will record data of the IMU, the angles (x,y and heading) and the input from the controls of your remote control.

If you want to know more about the values please check

http://www.multiwii.com/wiki/index.php?title=Multiwii_Serial_Protocol

CSV files

rc.csv

logs the input from the remote control

Format: millis;roll;pitch;yaw;throttle

values from 1000 to 2000 according to a normal rc reciever, e.g. 1500 = stick centered,

imu.csv

logs the raw data from the sensors

Format: millis;accX;accY;accZ;gyroX;gyroY;gyroZ

angle.csv

logs the calculated angle

Format: millis;X;Y;heading

values for X and Y are -1800 to 1800 in 1/10 degree, heading is from -180 to 180 in degree

gps.csv

logs gps data

Format: millis;hasGPSFix;nunberOFSats;lat;lng;altitude;groundSpeed

hasGPSFix: 0 = no, 1 = yes, lat,lng: in 1 / 10 000 000 deg, altitude: meter, groundSpeed: cm/s

openlog

You can also use this as an alternative firmware for the openlog hardware(https://www.sparkfun.com/products/9530) which is quite small and combines the board and the sd card reader. Don't worry - the original firmware can be flashed back at any time.

A How-To flash this firmware (or the original back) can be found at https://github.com/sparkfun/OpenLog/wiki/Flashing-Firmware

To get it to work only the chip select pin has to be changed to 10:

file cardlogger.cpp

const int chipSelect = 10;

About

MultiWii inflight datalogger/MultiWii OpenLog Firmware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 76.1%
  • Other 18.7%
  • C 5.2%