Plane: removed incomplete DF log of go-around

the right commands should already be logged. This code would have
logged a lot of uninitialised bytes
This commit is contained in:
Andrew Tridgell 2014-10-24 22:09:41 +11:00
parent c046273be2
commit e4f7a7f6d2

View File

@ -1134,14 +1134,6 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
} else { } else {
gcs_send_text_P(SEVERITY_HIGH,PSTR("Rejected go around command.")); gcs_send_text_P(SEVERITY_HIGH,PSTR("Rejected go around command."));
} }
//Log go around attempt to dataflash
if (should_log(MASK_LOG_CMD)) {
mavlink_mission_item_t go_around_miss_item;
go_around_miss_item.command = MAV_CMD_DO_GO_AROUND;
DataFlash.Log_Write_MavCmd(1, go_around_miss_item);
}
break; break;
case MAV_CMD_DO_FENCE_ENABLE: case MAV_CMD_DO_FENCE_ENABLE: