Copter: second DO_JUMP during WP hold time waiting does not work
Scenario:
- WP position A
- DO_JUMP to item 4
- WP position A with maximum possible hold time
- WP position B
- DO_JUMP to item 7
- WP position B with maximum possible hold time
- WP position C
Note that positions marked with the same letters are completely the same.
I'm expecting copter to reach the position A, then immediately jump to item 4 and reach the position B, then again immediately jump to item 7 and reach the position C.
What happens in reality, is that copter reaches position A, then immediately makes the first jump to item 4, then reaches position B and stays there and does not fly towards position C at all (this is a bug). Most probably second jump to item 7 is not properly executed and copter just waiting in the position B with maximum possible hold time.
HW: 3DR quad. SW: 3.1
Can you please post a log? And how many times was the jump set to repeat?
Unfortunately, log is lost and my copter is currently broken so I can't create a new log, but I can do it a bit later. But repeat value (param2) of both jump commands was set to 1, i.e. jump once.
Can you use the CLI to get the logs from flash?
Thanks for the report. I don't think do-jump works for copter at all but we will sort it out when we re-implement AP_Mission.
@proficnc The log is already overwritten.
@rmackay9 Is there a plan to re-implement AP_Mission in next Copter release? At least for me, proper jump commands would be very useful, because they allow synchronizing long sequences of conditional/do commands with the jump to next WP. Currently, I'm forced to estimate the duration of conditional commands sequence and put it as a hold time in the next WP.
hashok, Maybe for AC3.2 but it's hard to be sure because it's a very large change.
Randy, as I've begun to move into testing auto modes, I'm finding that either the docs are unclear or that my expecations of commands don't match what actually happens. I was beginning to feel that perhaps this area of AC was not fully cooked, which is no big deal, and your comment above suggests this might be the case, and it is encouraging me that these issues are part of a larger push for AP_Mission.
Without taking up too much of your time, would you mind sharing with me/us what "re-implementation of AP_Mission" means, so that I can adjust my expecations and testing, and thus avoid submitting a bunch of support questions and/or submitting issues here?
Thanks Randy!
I think the wiki explanation on mission commands isn't that great. I've reworked most of the wiki in other areas but not this part. It's on my list but so are many other things. The AP_Mission will involve moving a lot of the current mission handling code into a library that is shared with plane and rover. It will help with the do-jump command in particular because it's a general purpose command that doesn't really have anything frame specific about it. implementing ap-mission will also add some features that are missing like allowing waypoints to be moved even after the mission has begun. It won't directly help the implementation of frame-specific features. So for example if you find that a particular command doesn't implement all the yaw features that mavlink describes, the implementation of ap-mission won't help with that (so you could raise an issue). hope that helps.
AP-Mission has been merged into master so it will go out with AC3.2 and resolve this problem. I've also written up a wiki page which explains all the mission commands supported by the AC3.1.2 release. When AC3.2 goes out we will update it. http://copter.ardupilot.com/wiki/mission-command-list/