Softivation

The payload lands past the target in a Mission Planner mission

If the payload release servo in a Mission Planner mission opens at the target but the payload lands ahead of it, the cause isn't the servo but the drone's speed at that moment. Use Delay to stop at the target.

Furkan IŞIKAY 5 min read

You drew the route in Mission Planner and added the payload release servo command right below the target waypoint. The drone reaches the target, the servo opens, and there isn't a single error in the Messages tab. Yet the payload doesn't land on the target; it hits the ground a few meters beyond it.

Neither the servo's settings nor its cable is to blame here. The servo opens exactly on time. What makes the payload miss is that the drone is still flying at route speed at that moment.

When the servo opens

The servo command in the list has no position of its own. The autopilot runs it the moment the waypoint directly above it in the list is completed. That's why the moment the servo opens is set by when the waypoint above it completes.

That line's Delay column decides this. If Delay is 0, the drone doesn't stop at the waypoint: the command completes when it reaches the intermediate target it chases so it can turn smoothly toward the next waypoint, and the drone keeps its speed.

If Delay is 1 or more, the drone comes within 2 meters of the waypoint, stops and waits for the Delay time. Only when that wait ends does the servo command run.

The servo opens with the same command, but where the payload falls changes

With Delay 0 the servo opens while the drone is at full speed and the payload falls ahead. With Delay 2 the drone stops and the payload falls on the target
Look at the arrow length in the top strip: when the servo opens, the drone is still at cruise speed. Distances not to scale.

Look at the red arrow in the top strip of the figure: when the servo opens, the drone is on a straight pass at route speed, around 10 meters per second with the default setting. The payload carries that speed the moment it's released and falls beyond the target.

In the bottom strip the drone has stopped and drifts at around 0.1 meters per second. The payload drops almost vertically.

In a payload drop task like the one at TEKNOFEST, you place a waypoint at the center of the target area and write the servo command below it. If the drone approaches the target on a straight line, the servo opens while it flies at whatever the route speed is. If the route turns 90 degrees at the target, the drone slows down at the corner and the servo opens at around 3 meters per second. The payload still drifts ahead, just less.

The most common mistake: fiddling with the servo's PWM value or the mechanism when the payload misses. First look at the Delay column of the target line. If the value is 0, apply the list below; if the payload still misses, move on to the mechanism.

A mission list that drops the payload on the target

Set the target waypoint's Delay to 2 and put the servo command right below it. The drone stops within 2 meters of the target, waits 2 seconds, and the servo opens after that.

You can save the list below to a file with the .waypoints extension and open it with Load File on Mission Planner's PLAN screen. Change the coordinates to match your own target:

Mission filewaypoints
QGC WPL 110
0	1	0	16	0	0	0	0	37.1591000	38.7969000	500.000000	1
1	0	3	22	0	0	0	0	0.0000000	0.0000000	20.000000	1
2	0	3	16	2	0	0	0	37.1604475	38.7969000	20.000000	1
3	0	3	183	9	1900	0	0	0.0000000	0.0000000	0.000000	1
4	0	3	16	0	0	0	0	37.1626932	38.7969000	20.000000	1
5	0	3	20	0	0	0	0	0.0000000	0.0000000	0.000000	1

The 16 on line 2 is the waypoint command, and the 2 right next to it is its Delay value. The 183 on line 3 is the servo command: the 9 after it is the output the servo is connected to, and 1900 is the PWM value for the open position.

  • Enter: Delay = 2 on the target WAYPOINT line, and right below it DO_SET_SERVO (Ser No = the servo's output, PWM = open position).
  • You'll see: the drone stops at the target, the ground speed on the HUD drops to zero, and the servo opens 2 seconds later.
  • If not: if the servo doesn't move at all, see the Error Messages section below. If the servo opens before reaching the target, check the line order. If the command is above the target waypoint, it runs when the previous waypoint completes.

What you'll see

If you load this list and switch to AUTO, these lines appear in the Messages tab in order:

Output
Mission: 1 Takeoff
Mission: 2 WP
Reached command #2
Mission: 3 SetServo
Mission: 4 WP

Reached command #2 and Mission: 3 SetServo come back to back. The order is the same with Delay 0 and Delay 2. The difference shows in the ground speed at that moment: with Delay 0, when the two lines appear, the ground speed on the HUD is at route speed; with Delay 2 it's close to zero.

Error Messages and Their Meanings

ServoRelayEvent: Channel 9 is already in use

Another function is assigned to the output the servo is connected to. If SERVO9_FUNCTION isn't 0 (Disabled), the autopilot rejects the servo command. The mission continues and the servo doesn't move. Set the parameter to 0, write it, and run the mission again.

Reached command #2

The target waypoint is completed. With Delay 0 this line appears while the drone is still fast; if there's a Delay, it appears when the wait ends. The servo command runs right after this line.

Mission: 3 SetServo

The servo command has started. If no already in use line follows and the servo still doesn't move, the problem is in the hardware. Go to the Also check in the field list.

Also check in the field

  • Power the servo rail from a separate 5V UBEC. If the rail is unpowered, the signal goes out but the servo doesn't turn.
  • The moment the servo opens, the autopilot starts moving to the next waypoint. If your mechanism opens slowly, the payload may drop as the drone moves off. Check whether the mechanism opens on its first movement.
  • Even from a stopped drone, the wind blows the payload its own way. Delay only brings the drone's speed to zero. Note the wind direction before you drop.

Line order in the mission list, Delay and corner behavior are part of route planning in the Mission Planner from Scratch course. In the lesson in the Latest Additions section, you trace the moment the servo opens step by step in the autopilot source code, and find its signature in the flight log and a quick diagnosis table.

Was this article helpful?

Free resourceTEKNOFEST UAV software readiness checklistCheck off your team's software readiness stage by stage on a printable list.