After my plane has flown its waypoints it returns home, as it should. But how can I get it to start the mission again, without having to land and restart ?

 

So what I want to do is be able to toggle out of auto mode into say manual, then toggle back to auto mode and have the plane restart the mission from waypoint 1 again.

 

Cheers

Jamie

Views: 152

Reply to This

Replies to This Discussion

i know in the flight data box it has a button "restart mission" but that's for telemetry.

 

If you dont have telemetry then im not sure how you would accomplish this.

Hi Trent, thanks for your reply.

I was sure there was an option in the old ardupilot to allow this. At the least there was an option to restart the AP by toggling the mode switch 3 times.

I was trying the same but either it was removed or I didn't get the timing right. Now planning to add some extra code that would reset the waypoint index depending on one of the other channel inputs. Not sure how tricky this is actually but let's see.

Has anybody of you found a neat solution (besides installing telemetry:-)?

So, a slightly hacky solution which at least appears to be working on my workbench is to add a couple of lines to process_next_command() inside commands_process.pde, something along the lines of

 

if (g.waypoint_index > g.waypoint_total) {

   if(g.rc_7.radio_in > 1800) {

       SendDebug_P("MSG RESTARTING MISSION");

       change_command(1);

}}

 

where channel rc7 is set to a switch on the remote. This is with APM release 2.22.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service