Arducopter - commands: Add home logging

This commit is contained in:
Jason Short 2012-07-13 11:51:21 -07:00
parent 67ecaa9252
commit d34ca0e6ea
1 changed files with 4 additions and 1 deletions

View File

@ -198,7 +198,10 @@ static void init_home()
// ------------------- // -------------------
// no need to save this to EPROM // no need to save this to EPROM
set_cmd_with_index(home, 0); set_cmd_with_index(home, 0);
print_wp(&home, 0); //print_wp(&home, 0);
if (g.log_bitmask & MASK_LOG_CMD)
Log_Write_Cmd(0, &home);
// Save prev loc this makes the calcs look better before commands are loaded // Save prev loc this makes the calcs look better before commands are loaded
prev_WP = home; prev_WP = home;