DO_JUMP ... never Jumps. - Help !

Uploaded Arduplane 2.25 and APM Planner 1.0.91 (tried with 1.0.88 as well) and can't seem to get flightplans working correctly.  I had it working before but maybe it's a user error on my part.

 

If I add any DO_JUMP command into a plan, it will never jump, and simply return to RTL as if the jump was never on the end of the flightplan.

Tried in Arduplane 2.25 HIL and it is repeatable.

 

Could some one try to see if this works as expected - or more likely I hope I missed something.

Reflashed, erased, re-setup a number of times to no avail.

 

Below is a section of writing a flight plan into Ardupilot Mega from the console.

************************ WRITING WP's into APM *******************************

Request stream MAV_DATA_STREAM_RAW_SENSORS at 3 hz : currently 0
remote lost 0
bps 1349 loss 14 left 70 mem 43862092
HUD 1 hz drawtime 0 gl True
remote lost 0
bps 1151 loss 14 left 42 mem 45500144
remote lost 0
bps 1139 loss 14 left 91 mem 43860820
remote lost 0
bps 1118 loss 14 left 70 mem 43860756
setWP 0 frame 0 cmd 0 p1 0 x 47.25884 y 11.33107 z 584
set wp fail doing 0 req 0 ACK 47 or REQ 40 : 40 seq 0 ts 1 tc 1
set wp fail doing 0 req 0 ACK 47 or REQ 40 : 40 seq 0 ts 1 tc 1
set wp doing 0 req 1 REQ 40 : 40
setWP 1 frame 3 cmd 16 p1 0 x 47.25915 y 11.33441 z 100
set wp fail doing 1 req 1 ACK 47 or REQ 40 : 40 seq 1 ts 1 tc 1
set wp fail doing 1 req 1 ACK 47 or REQ 40 : 40 seq 1 ts 1 tc 1
set wp fail doing 1 req 1 ACK 47 or REQ 40 : 40 seq 1 ts 1 tc 1
set wp doing 1 req 2 REQ 40 : 40
setWP 2 frame 3 cmd 16 p1 0 x 47.25693 y 11.3313 z 100
set wp fail doing 2 req 2 ACK 47 or REQ 40 : 40 seq 2 ts 1 tc 1
set wp fail doing 2 req 2 ACK 47 or REQ 40 : 40 seq 2 ts 1 tc 1
set wp fail doing 2 req 2 ACK 47 or REQ 40 : 40 seq 2 ts 1 tc 1
set wp doing 2 req 3 REQ 40 : 40
setWP 3 frame 2 cmd 177 p1 1 x 10 y 0 z 0
set wp fail doing 3 req 3 ACK 47 or REQ 40 : 40 seq 3 ts 1 tc 1
set wp fail doing 3 req 3 ACK 47 or REQ 40 : 40 seq 3 ts 1 tc 1
set wp fail doing 3 req 3 ACK 47 or REQ 40 : 40 seq 3 ts 1 tc 1
set wp 3 ACK 47 : 47
setParam 'ALT_HOLD_RTL' = '10000' sysid 1 compid 1
597 ☺flight plan received
setParam 'WP_RADIUS' = '30' sysid 1 compid 1
setParam 'WP_LOITER_RAD' = '60' sysid 1 compid 1
remote lost 0
bps 1107 loss 14 left 28 mem 43748932

 

************************ READING WP's from APM *******************************

 

HUD 1 hz drawtime 0 gl True
remote lost 0
bps 1111 loss 16 left 70 mem 44748216
Getting WP #
15/11/2011 2:12:25 AM PC wpcount 27 need 44 55
15/11/2011 2:12:25 AM PC wpcount 42 need 44 45
15/11/2011 2:12:25 AM PC wpcount 32 need 44 0
15/11/2011 2:12:25 AM PC wpcount 30 need 44 40
15/11/2011 2:12:25 AM PC wpcount 74 need 44 12
wpcount: 4
Getting WP0
getWP 0 0 58400 472588386 113310699 opt 0
Getting WP1
getWP 16 0 10000 472591514 113344144 opt 1
Getting WP2
getWP 16 0 10000 472569313 113313026 opt 1
Getting WP3
getWP 177 1 0 10 0 opt 0
Done
Getting WP #
15/11/2011 2:12:25 AM PC wpcount 74 need 44 0
wpcount: 4
Getting WP0
getWP 0 0 58400 472588386 113310699 opt 0
Getting WP1
getWP 16 0 10000 472591514 113344144 opt 1
Getting WP2
getWP 16 0 10000 472569313 113313026 opt 1
Getting WP3
getWP 177 1 0 10 0 opt 0
Done

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer

    Hey Guys

     

    Thanks for the bug report.  I found it and squished it. 

     

    I have uploaded a fix to the trunk.  Were you all running code from the repo trunk or had this made its way in to APMPlanner's hex?

  • Developer

    Seppo,

     

    I have changed the mission logic to be more intuitive with conditional and navigation commands now placed between the two waypoints where they would occur in flight.  I have a new video going over the change sitting in my video camera, but have not had time to edit it for upload yet. The wiki is a little sparse on details.

     

    However, it looks like your problem is that you are trying to use the jump command as the last command in the mission.  However, the mission logic will always queue the next navigation command before it executed the next conditional or immediate command, as the autopilot has to know where it is going next.  Since there is no navigation commands left it terminates the mission and goes RTL.  This will only be an issue in this particular case where you are trying to use a Jump as the last command.  If you put any sort of a navigation command after it your mission should be OK.  Give that a try and let me know if you still have difficulty.

  • Moderator

    Its usually because of a confusion about how navigation wp's work, which is different from action way points. 

     

    Make more wp's, and drop the jump in the middle of them, not at the end or just before the end. 

    Then watch what happens, it will be confusing at first, but then you'll see what is missing. 

     

    Do you have a screenshot of the mission script? It's a bit easier than trying to remember what all the codes and params are from the format above...

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @a1k0n: @DanielChiaJH @diyrobocars @circuitlaunch Here's my car's view of that race. About 8.4 second lap times for laps 2 and 3... both…
13 hours ago
DIY Robocars via Twitter
RT @DanielChiaJH: Great racing against @a1k0n today at @diyrobocars! Pretty cool to both break sun-9s at the track today I think I got very…
Sunday
DIY Robocars via Twitter
Broadcasting the @circuitlaunch race live now at https://m.twitch.tv/diyrobocars Races begin around 2:00pm PT
Saturday
DIY Robocars via Twitter
RT @a1k0n: ran a huge number of hyperparameter tuning experiments yesterday; now I can train a new policy, far with better quality, in 15 m…
Saturday
DIY Robocars via Twitter
RT @a1k0n: Did I get rid of hand-tuned parameters? Yes. Am I still hand-tuning more parameters? Also yes. I have a few knobs to address the…
Sep 26
DIY Robocars via Twitter
RT @a1k0n: I'm not going to spoil it, but (after charging the battery) this works way better than it has any right to. The car is now faste…
Sep 26
DIY Robocars via Twitter
RT @a1k0n: Decided to just see what happens if I run the sim-trained neural net on the car, with some safety rails around max throttle slew…
Sep 26
DIY Robocars via Twitter
Sep 24
DIY Robocars via Twitter
RT @SmallpixelCar: @a1k0n @diyrobocars I learned from this. This is my speed profile. Looks like I am too conservative on the right side of…
Sep 24
DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars Dot color is speed; brighter is faster. Yeah, it has less room to explore in the tighter part, and t…
Sep 24
DIY Robocars via Twitter
RT @a1k0n: I'm gonna try to do proper offline reinforcement learning for @diyrobocars and throw away all my manual parameter tuning for the…
Sep 23
DIY Robocars via Twitter
RT @circuitlaunch: DIY Robocars & Brazilian BBQ - Sat 10/1. Our track combines hairpin curves with an intersection for max danger. Take tha…
Sep 22
DIY Robocars via Twitter
RT @SmallpixelCar: Had an great test today on @RAMS_RC_Club track. However the car starts to drift at 40mph. Some experts recommended to ch…
Sep 11
DIY Robocars via Twitter
RT @gclue_akira: 世界最速 チームtamiyaのaiカー https://t.co/1Qq2zOeftG
Sep 10
DIY Robocars via Twitter
RT @DanielChiaJH: Always a good time working on my @diyrobocars car at @circuitlaunch. Still got some work to do if I’m to beat @a1k0n howe…
Sep 10
DIY Robocars via Twitter
RT @SmallpixelCar: My new speed profile for @RAMS_RC_Club track https://t.co/RtLb7TcgIJ
Sep 10
More…