Copter: init cmd before saving with Ch7/Ch8

This commit is contained in:
Randy Mackay 2014-03-10 17:36:18 +09:00
parent 802ab79c84
commit fa96e9355b

View File

@ -198,7 +198,7 @@ static void do_aux_switch_function(int8_t ch_function, uint8_t ch_flag)
}
// create new mission command
AP_Mission::Mission_Command cmd;
AP_Mission::Mission_Command cmd = {};
// if the mission is empty save a takeoff command
if(mission.num_commands() == 0) {