diff options
author | Julian Oes <julian@oes.ch> | 2014-06-15 11:59:45 +0200 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2014-06-15 11:59:45 +0200 |
commit | 9772aa5814eb2f0d864e89814f5be2cf9f136eda (patch) | |
tree | 3b452cedf471f31cc0b578324c90044c5a8ba583 | |
parent | a702a350ce21017109c83024b771300c84751e5f (diff) | |
download | px4-firmware-9772aa5814eb2f0d864e89814f5be2cf9f136eda.tar.gz px4-firmware-9772aa5814eb2f0d864e89814f5be2cf9f136eda.tar.bz2 px4-firmware-9772aa5814eb2f0d864e89814f5be2cf9f136eda.zip |
mavlink: set current DO_JUMP repetitions to 0 initially
-rw-r--r-- | src/modules/mavlink/mavlink_main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/mavlink/mavlink_main.cpp b/src/modules/mavlink/mavlink_main.cpp index 3a656ae4d..d7cf45351 100644 --- a/src/modules/mavlink/mavlink_main.cpp +++ b/src/modules/mavlink/mavlink_main.cpp @@ -900,6 +900,7 @@ int Mavlink::map_mavlink_mission_item_to_mission_item(const mavlink_mission_item break; case MAV_CMD_DO_JUMP: 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; break; default: |