Hi all,
Going through the logs from my Arducopter it appears that it's only logging radio channel PWM values and some limited sensor values. Is there a way to expand this so that it logs data from all the sensors (gyro, accel, baro, mag, gps) as well as the motor commands? I think this would be very useful information to analyse in the event of a crash.
Also, at what frequency are the log entries written?
Thanks,
Chris
Replies
Thanks Mauro and Randy! I've got that code working now. How often is this data logged? There seems to be an enormous amount after just a short time. Any way to reduce this frequency?
What about GPS logging? I see there's a Log_Write_GPS function in Log.pde, how do I enable this?
Chris
By the way, there's a couple of small issues in the my data logging comment on that page..
this line is fine if you're using the version of ArduCopterNG from subversion (not from download area)
Log_Write_Sensor(AN[0], AN[1], AN[2], AN[3], AN[4], AN[5], press_baro_altitude);but if you're using the download version you need to use this line:
Log_Write_Sensor(AN[0], AN[1], AN[2], AN[3], AN[4], AN[5], press_altitude);
Also for #2, this line:
Log_Write_Attitude(roll,pitch,yaw);
should be changed to:
Log_Write_Attitude(ToDeg(roll),ToDeg(pitch),ToDeg(yaw));
Here you have something...
http://www.diydrones.com/profiles/blogs/arducopter-flight-data-needed
hope it can help you ;)