Added current total to the log. Logging at a lower rate. decreased size to ints.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1511 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
jasonshort 2011-01-18 06:12:11 +00:00
parent 08a2fbfdd0
commit 1fca47fc9b
1 changed files with 5 additions and 3 deletions

View File

@ -567,9 +567,6 @@ void medium_loop()
if (log_bitmask & MASK_LOG_GPS) if (log_bitmask & MASK_LOG_GPS)
Log_Write_GPS(GPS.time, current_loc.lat, current_loc.lng, GPS.altitude, current_loc.alt, (long) GPS.ground_speed, GPS.ground_course, GPS.fix, GPS.num_sats); Log_Write_GPS(GPS.time, current_loc.lat, current_loc.lng, GPS.altitude, current_loc.alt, (long) GPS.ground_speed, GPS.ground_course, GPS.fix, GPS.num_sats);
if (log_bitmask & MASK_LOG_CUR)
Log_Write_Current();
send_message(MSG_ATTITUDE); // Sends attitude data send_message(MSG_ATTITUDE); // Sends attitude data
break; break;
@ -685,6 +682,11 @@ void slow_loop()
case 2: case 2:
slow_loopCounter = 0; slow_loopCounter = 0;
update_events(); update_events();
// save current data to the flash
if (log_bitmask & MASK_LOG_CUR)
Log_Write_Current();
break; break;
default: default: