mavlink: set current DO_JUMP repetitions to 0 initially

This commit is contained in:
Julian Oes 2014-06-15 11:59:45 +02:00
parent a702a350ce
commit 9772aa5814
1 changed files with 1 additions and 0 deletions

View File

@ -900,6 +900,7 @@ int Mavlink::map_mavlink_mission_item_to_mission_item(const mavlink_mission_item
break; break;
case MAV_CMD_DO_JUMP: case MAV_CMD_DO_JUMP:
mission_item->do_jump_mission_index = mavlink_mission_item->param1; mission_item->do_jump_mission_index = mavlink_mission_item->param1;
mission_item->do_jump_current_count = 0;
mission_item->do_jump_repeat_count = mavlink_mission_item->param2; mission_item->do_jump_repeat_count = mavlink_mission_item->param2;
break; break;
default: default: