Browse Source

Copter: init cmd before saving with Ch7/Ch8

master
Randy Mackay 11 years ago
parent
commit
fa96e9355b
  1. 2
      ArduCopter/control_modes.pde

2
ArduCopter/control_modes.pde

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

Loading…
Cancel
Save