Payload delivery
Forpilotsfield integrators
A delivery kit carries its payloads in numbered slots and lets one go at a time. Everything on this page is built on that one fact: the release hardware takes exactly one slot per command, so "drop two bottles" is always two commands, never a special one. You release a slot from the handset, from the OSD's bottle widget, or from the map - three surfaces, one command on the wire.
Diagram: How a release travels from any of the three surfaces to one slot - img/payload-delivery.svg (vector: img/payload-delivery.svg)
What the system is
The drone holds up to 10 slots. Which hardware actually lets a payload go is set on the drone and never leaves it - the ground only ever learns how many slots there are:
-
Vampire - a separate drop board on the aircraft, wired onto the same MAVLink bus as the flight controller. It has the electromagnets or latches, and it has the sensors that say which slot still holds something.
-
Direct - no drop board. The drone drives the flight controller's own relay and servo outputs, up to four of them, and pretends to be a drop board so everything on the ground works the same way.
-
Servo positions - one servo with a fixed position for each slot and a home position where every slot is held. The drone pretends to be a drop board exactly like Direct.
-
Extender - an RC extender drop board on one of the flight controller's serial ports, one board channel per slot, up to 8. The drone sends each release to a Sokil script running on the flight controller, and the script opens that slot's channel on the board. The drone pretends to be a drop board toward the ground exactly like Direct.
All four are set from one dropdown, and the fifth value None is the shipped default: with it, delivery is off, the drone reports zero slots and the OSD hides its drop widget entirely.
Wiring and the release board
For Vampire, the rules the board must live by are the ones that matter on the bench:
- It sits on the flight controller's MAVLink bus - one of its telemetry UARTs, or a shared bus through a router - and it answers as component 169 on the aircraft's own system id, not as a system of its own. A board given a private system id never receives a single command.
- It broadcasts the state of its holders about every 3 seconds and immediately after anything changes. That broadcast is what the screen shows: re-latch a payload by hand on the bench and the bottle fills in again by itself, and a payload that falls off without a command empties by itself too. The screen is reading sensors, not remembering commands.
- With no broadcast for a few seconds the board counts as offline, the loaded state is unknown, and a release is still sent. That is deliberate - a dead sensor must never veto a drop.
- Its slot count and the drone's must be the same number. There is no slot count on the wire, so a mismatch does not raise an error: it shifts every slot, and the wrong bottle goes. The board's documentation has to state the number, and you put that number into the card below.
For Direct, each slot is one flight-controller output, numbered exactly the way the flight
controller's own parameters name it - RELAY1 is 1, SERVO9 is 9. A relay is pulsed on and then
off again; a servo is driven to its low or high endpoint and returns to trim. The endpoint values
are read from the aircraft's own SERVO<ch>_MIN / _TRIM / _MAX parameters over MAVLink, and a
servo drop is refused until they have arrived. A servo that must move both ways is two slots on
one servo output - one at the min end, one at the max end.
Confirm on the bench: what to set
SERVO<ch>_FUNCTIONorRELAY<n>_PINto on your own flight controller is not something Sokil prescribes. Read the flight controller's documentation, set the output up there first, and prove it moves before you trust a slot to it. LeavingSERVO<ch>_FUNCTIONat 0 is a sound choice and Sokil is built for it: an ArduPilot output at 0 emits nothing at all until something commands it, so Sokil commands each configured servo channel to its own trim once, as soon as that channel's endpoints arrive. Without that the mechanism would sit unpowered and open. Note also that Sokil's Direct mode drives the outputs itself: it does not use ArduPilot's gripper subsystem, so there is noGRIP_setting to configure.
For Servo positions, name the output the way the flight controller names it - SERVO5 is 5.
Take each slot's pulse and the home pulse from the mechanism's documentation or whatever drove it
before; a radio model's channel overrides are the usual source. Set the FC output's SERVO function
to 0: passthrough re-copies the RC channel every loop and overwrites the release command.
Confirm on the bench with empty bays that each pulse releases only its own slot and the home
pulse holds every slot. Read the flight controller's documentation and prove the output moves
before trusting the mechanism.
For Extender, the flight controller does the talking to the board, through a Sokil script the card hands you: pick Extender on VTX settings > Delivery > Payload delivery and press Download FC script there. The card lists the same steps in short:
- Copy
rc-extender-sokil.luatoAPM/scripts/on the flight controller's SD card, and remove any other script that drives the board, such asrc-extender+automissions.lua- both would run and fight over it. No other script on the card may use MAVLink commands either (mavlink:init): the two would silently take each other's commands. - Set
SCR_ENABLE= 1. The board's serial port must be the first port set to Scripting:SERIALn_PROTOCOL= 28 andSERIALn_BAUD= 57 (57600). - Reboot the flight controller - the script's own settings only appear after it has run once - and
check
CH_EX_ENABLE= 1 (at 0 the script keeps the board off),CH_EX_INPUT_CH= 0 (the script then forwards no radio channel to the board - the board decodes a forwarded pulse unreliably, and a radio switch could move a holder) andCH_EX_TEST_CH= 0. That last one is the board's bench test mode: while it holds a channel open the board lets every other holder go half open, so never fly with it set. Settings the old script stored (the per-channel pulses) are kept. - Set the slot channels on the card and test each slot.
The drone cannot tell whether the script is running, so Ready on the card does not prove it. As a safety hold the drone closes every channel once the link is up after a boot, a link loss or a settings change, and again on arming. Confirm on the bench with empty bays that each slot opens its own channel and nothing else.
With automatic target selection, whichever mode you use, the aircraft must have heard its flight controller before any release is sent. An explicitly configured target system ID is an exception to that heartbeat check. Without either, the drone will not guess which system to address and fires at nothing; that is the single most common reason a fully-wired drop board does nothing.
Turning it on
The card is VTX settings (on the station) > Delivery > Payload delivery, and the tab is admin-only. Pick the mode in the card's header. Beside it sits a live badge:
| Badge | What it means |
|---|---|
| Ready | the software prerequisites for a release attempt are met: a live MAVLink link and known target, plus configured outputs and fetched servo endpoints in Direct, a servo output and at least one slot pulse in Servo positions, or a script command ID and at least one slot channel in Extender; this does not confirm physical movement |
| Not ready | it would not - the card's tooltip names what is still missing |
Vampire needs one number: Payload slots, your board's slot count (default 4, range 1 to 10).
Direct takes a row per drop, Drop 1 to Drop 4: what it drives (Off, Relay, Servo (min end), Servo (max end)) and the output number. Two rules the card enforces with a flag rather than silently:
- Slots are counted from Drop 1 and stop at the first Off. Anything configured after a gap is dead configuration, not a spare slot, and the card says "Not counted".
- The output number must be set. 0 names neither a relay nor a servo, so that drop refuses to fire and the whole delivery reports not ready ("No output").
Revert after (ms) is how long the actuator stays in the released position before the relay switches back off or the servo returns to trim - 1000 ms by default, and 0 latches it there until something commands it back.
For Servo positions, use VTX settings > Delivery > Payload delivery:
- Servo output (parameter
vtx_delivery_servo_ch) - the FC output number, for example 5 for SERVO5. Blank or 0 shows No output: no slot can fire and the active slot count is zero. - Slot n pulse (µs) (parameter
vtx_delivery_servo_pos) - one pulse per slot in slot order, 500-2500 µs. Out of range flags the offending row; the drone refuses the whole list until it is fixed. Incomplete entries stay in the editor until every entry is an integer. - Slots > Add slot - add up to 10 slots; the first starts at 1500 µs, then each starts 100 µs above the last, capped at 2500. Remove slot n removes that row. The active count is the list length once Servo output is set. An empty list shows No slots yet and hides the OSD widget; an unreadable list shows an error with Clear list so you can enter the slots again.
- Home pulse (µs) (parameter
vtx_delivery_servo_home) - the pulse that holds every slot, default 1500. 0 shows No home: there is no home command on link recovery, arming or after release, and the mechanism stays where the last command left it. - Return home after (ms) (parameter
vtx_delivery_revert_ms) - the delay after release, default 1000. 0 leaves the servo at the release position. A group restarts the delay at every release and goes home after the last one, provided Home pulse is nonzero. - Selector positions - the same map below, with one position per active slot by default.
Older camera software has no Servo positions option. Update the camera to configure it.
For Extender, on the same card:
- Slot n channel (parameter
vtx_delivery_ext_ch) - the board channel each slot opens, in slot order, 1 to 8. Out of range flags a channel the board does not have and Duplicate a channel another slot already opens; the drone refuses the whole list until the row is fixed. - Slots > Add slot - adds the lowest channel no slot uses yet, up to 8 slots. Remove slot n removes that row. The active count is the list length. An empty list shows No slots yet and hides the OSD widget; an unreadable list shows an error with Clear list.
- Close after (ms) (parameter
vtx_delivery_revert_ms) - how long a released slot's channel stays open before the drone has the script close every channel it opened, default 1000. Each release restarts the delay, so a group closes after its last slot. The script closes a channel by itself after its own maximum open time - 5000 ms as shipped - so keep this below that; Over script limit flags a longer one. 0 leaves closing to that maximum alone. - Script command ID (parameter
vtx_delivery_ext_cmd) - shown in expert mode only. The number the drone sends the script, default 31014: 0 or a MAVLink user command from 31000 to 31014, anything else is refused and flagged Out of range. It must match the script's own setting, or be 31010: a drone set up before 31014 became the default keeps 31010, and the current script takes that too. A flight controller still on an older script listens on 31010 only, so a new or reset drone (31014) cannot drop there, and on it Nose points here and Camera looks here get no answer - install the current script. The script reads its setting once at boot, so reboot the flight controller after changing it there. At 0 no slot can fire and the drone reports zero slots, and the card says so to an admin too. - Selector positions - the same map below, with one position per slot by default.
Older camera software has no Extender option either; update the camera to configure it.
There is no arming interlock anywhere in the drone. A release fires whenever it is commanded, disarmed and on the bench included; all it needs is a live MAVLink link. That is on purpose - it is what makes a bench test possible - but it means the only interlocks are the OSD's on-screen lock and the selector's safe position below. Clear the drop zone before you touch any of this.
The RC side: the selector and the drop switch
Two switches, on Control (on the station) > RC Actions:
- Payload slot select (parameter
rc_act_vtx_payload_slot_sw) - a latched selector. Each position arms a slot. Selecting never drops. - Payload drop (parameter
rc_act_vtx_payload_drop_sw) - a momentary button. It releases whatever the selector has armed, on the press.
Two switches are not by themselves a safety: a latched selector plus a momentary button leaves a release two thumb movements away at every moment of a flight, which is exactly why the selector map below has a position that arms nothing. While the delivery mode is None neither action can do anything, and the card says so - a row already assigned to a channel stays visible with a "no hardware" warning rather than quietly doing nothing.
Three guards are built into the drop switch and are worth knowing before you test it:
- Holding it HIGH does not re-fire. Release it and press again for the next drop.
- A switch that is already HIGH at boot - or when the RC link comes back - has to go LOW once before it can fire.
- Losing the RC signal never releases anything. A silent channel counts as "no reading", not as a switch position. That matters most on an inverted channel, where a lost link would otherwise read as a deliberate full-HIGH press.
Selector positions, and a safe place to park
By default the selector is split into one position per slot, in order. The Selector positions rows on the Delivery card let you lay them out yourself instead (up to 16 positions), and each position can be one of three things:
| Position holds | What the selector arms | What the drop switch does there |
|---|---|---|
| Disabled | nothing | nothing at all |
| one slot | that slot | releases it |
| several slots | all of them (a group) | releases them one after another |
Put a Disabled position where the pilot parks the selector. With the selector resting there
nothing is armed, the drop switch is inert, and the OSD underlines no bottle - so a knock on the
drop switch during a whole flight of not dropping anything costs nothing. First detent, last
detent, or both ends: 0,1,2,3,4 is a five-position switch guarded at the low end, 0,1,2,3,4,0
is a six-position switch guarded at both. The card warns when you leave no Disabled position at
all ("the selector always points at a live slot, so the drop switch is armed for the whole
flight"), and warns again if you make every position Disabled, which can never drop.
Disabled positions are never slots: the OSD's bottle row and the slot count do not change because you added one.
Two more properties of the map worth trusting: a malformed map is rejected whole and the previous one kept, so a typo cannot silently re-aim the switch; and a position naming a slot the current slot count does not reach behaves as Disabled rather than snapping to the bottle next door.
Several slots on one position
A slot button on its own picks just that slot: pressing 2 on a row that shows 1 moves the position to slot 2. To make a group, press Several slots on the position row first, then every slot it should release: one press of the drop switch releases every slot of it, one after another. Pressing Several slots again keeps only the lowest slot of the group. Nothing new happens on the wire - it is one release command per slot, which is the only release any drop board understands, so a board in the field needs no update.
Group gap (ms) is the pause between them, 150 ms by default and up to 5000. Keeping a gap on an electromagnet board is a tested recommendation. Set it to 0 only if you want them back to back.
The OSD underlines every slot the selector has armed, group included, so what one press will drop is readable from the flying screen.
In Direct mode, both ends of one two-way servo can share a group, but the servo then swings from one end to the other, and the card flags it as "Servo pair". Give it time on two settings:
- Group gap (ms) long enough for the servo to reach the first end and that payload to fall clear. At the 150 ms default the servo leaves the first end after 150 ms, which is usually too short; start at 500 - 1000 ms and check it on the bench.
- Revert after (ms) no longer than the gap (or 0). Each end returns to trim its own revert time after its own release, so with a gap of 800 and a revert of 1000 the second end is held only 200 ms. With a revert of 500 each end is held 500 ms.
Putting the two ends on different positions, or using relays, avoids the question. This caution is Direct-only; Servo positions uses one servo for every slot by design.
The OSD widget
On the fly view the delivery draws itself as a row of bottles, one per slot, numbered, on the main video pane. The drone's slot report enables it automatically, subject to the OSD visibility and panel settings below; it disappears when the drone reports no slots. It is also hidden while a recording is playing back, while the layout editor is open, when the OSD is hidden, or when the delivery element is not enabled on the current OSD panel.
What it draws:
| On screen | Means |
|---|---|
| a filled bottle | the slot still holds a payload |
| an outline bottle | released |
| bottles dim, padlock white | locked - nothing is clickable |
| bottles bright, padlock red, open | unlocked - a click releases |
| an underline under a bottle | the RC selector has this slot armed (drawn even when locked) |
| a bottle blinking red for ~2 s | the release did not go out, or the board answered "not done" |
In Vampire mode the bottles follow the board, not your clicks: a slot released from the handset empties on screen too, and a payload re-latched by hand fills back in within a few seconds.
The lock is the interlock. Click the padlock to unlock, and the widget stays unlocked for 30 seconds - the seconds left are counted down under the padlock - before locking itself again. Locking (by hand, by that timeout, or by the reset below) also ends any selection in progress. Some stations are set to re-lock after every release instead; on those, one unlock buys one drop.
One tap on a bottle releases that slot. A slot already shown released is refused, and so is any release while the padlock is closed or while the aircraft's system id is unknown - the OSD would rather send nothing than aim a release at a guess. Hovering a bottle says what a click would do, and adds "selected on the RC switch" when the handset has that slot armed as well. A release that did not leave the station puts a red line under the cluster naming which of the three it was: no drone link, this tab not allowed to send commands, or the ground-station link.
Dropping several from the screen
While the widget is unlocked a SEL checkbox appears beside the padlock (the overlay follows the interface language, so it reads ВИБІР in Ukrainian, and the button below it СКИД n):
- Click SEL. Bottle taps now mark instead of releasing; a marked bottle gets a warning-colored frame around it.
- Mark the ones you want. The button beside the checkbox counts them: DROP 3.
- Click DROP n. Every marked bottle is released, one after another, a short pause apart. One release command per slot, exactly like the RC group. That pause is separate from the drone's group gap, and it is not editable from the browser.
The group is one gesture: the DROP button ends select mode whether or not every slot went out, so the next tap is an ordinary single release again. When the group finishes, all selection marks clear. A slot that failed blinks; select it again deliberately if you want to retry it.
Right-click anywhere over the cluster for Reset delivery display: it clears the released marks, ends any selection and locks the widget again. It changes the picture on your screen only - in Vampire mode the board's next broadcast will correct it anyway.
From the map
The map pane of the fly view has the same release under Guided > Immediate > Drop: one button per slot. It is the same interlocked path as the bottles - the widget's lock still applies, and these buttons ask no confirmation of their own because the lock is the confirm. With no slots the row reads "no drop slots on this OSD".
Two distinctions that catch people out:
- A
DO_GRIPPERmission item is the flight controller's own gripper, not this. A Sokil drop controller never hears mission items. - The Relays (on the station) page toggles GPIO relay outputs wired to the device itself, for switching auxiliary equipment on and off. It is not the payload system.
In view-only mode nothing drops. A release is an uplink, and a tab watching another station's video does not hold the uplink: no bottle is clickable, SEL does nothing, and the map's Drop refuses with "control stays with the vehicle's own station". The padlock still opens - it is local display state - so do not read an open lock there as permission. Press Request control on the view-only chip and the owning station's pilot can allow this tab; until then the release is refused before it leaves the browser.
Checking it before you fly
Do this with the payload bays empty, the drop zone clear and the flight controller disarmed. Keep it disarmed throughout the check and re-latching; this test does not require arming.
- On the Delivery card, confirm the mode and the slot count, and that the badge reads Ready. If it does not, its tooltip names what is missing - almost always the flight controller.
- Open the fly view. The bottle row should be there with the right number of bottles. If it is missing, the drone is reporting zero slots: the mode is None, or in Direct nothing is configured from Drop 1, or the servo endpoints have not arrived yet; in Servo positions the output or slot pulses may be unset; in Extender the channel list may be empty.
- Move the RC selector through its positions and watch the underline follow it on screen. On a Disabled position no bottle is underlined. That one check proves the selector map, the switch binding and the link in one go.
- Put the selector on a real slot and press the drop switch. Check that the mechanism operates. On a Vampire board with holder sensors the bottle empties when the sensor reports back, which is the only proof the mechanism actually let go; a board with no sensors only repeats what it was told, and its documentation has to say so.
- For a group, check that the slots go one after another rather than together, and lengthen the group gap if the board struggles.
- Re-latch by hand. In Vampire the bottles fill in again by themselves within a few seconds. In Direct, Servo positions and Extender, a release while the flight controller is disarmed marks the slot loaded again - that is the re-rigging workflow, not a bug. In Servo positions the servo returns to its home pulse after the delay, unless Home pulse or Return home after is 0.
One read-only value behind all this is on screen: the Ready / Not ready badge (parameter vtx_delivery_ready)
beside the mode select on the Payload delivery card (VTX settings > Delivery). The rest have no
control in the UI; an expert reads them on the Parameters (on the station) page, where they are kept out
of the default listing until their name is typed into the filter: whether the board has reported
recently (parameter vtx_delivery_board_online), the holder bitmask (parameter vtx_delivery_loaded) and what one
press would release right now (parameter vtx_delivery_selected).
Gotchas
A drone on older software has no groups. It rejects a map with several slots on one position
whole and keeps the map it had, which would read as a save that did nothing - so the card offers
the plain one-slot dropdown instead, and the group editor only appears once the drone reports its
Group gap (ms) setting (parameter vtx_delivery_group_gap_ms). Update the camera and the option comes back;
Version compatibility has the wider rule.
"Delivery is on but nothing drops". The Diagnostics page names this one directly
(delivery_no_fc): the flight controller has never been heard from, so the drone does not know
where to send a release. Fix the MAVLink link first - usually the serial port, or the drone and
ground sides swapped. The drop board looking perfectly healthy is not evidence against this: its
broadcasts arrive whether or not the flight-controller link is set up correctly.
A drop is refused when the board says the slot is already empty. That is deliberate in Vampire mode, and it is also what a holder mask wired the wrong way round looks like from the pilot's seat: nothing drops, and the commands never even reach the air. In Direct, Servo positions and Extender modes a re-drop always fires.
The underline fades rather than freezing. The drone keeps repeating what the selector has armed, and when those reports stop for a few seconds the marker disappears instead of pointing at a slot the selector may have moved off. So no underline can mean a stale report, not only a Disabled position.
The lock is ground-side only. It stops clicks in this browser. It does not stop the RC drop switch, and it does not stop another station or another tab that has been granted control.
Related guides
- RC switches in flight - every other action bound to the handset
- RC channel plans and switches - finding which channel a switch is on, and the plan the kit ships with
- The fly view - the screen the bottles are drawn on
- OSD settings - the overlay's own cards and the layout editor
- Flight controller - the MAVLink link every release rides
- Version compatibility - what an older camera or station cannot do
- Troubleshooting - symptom to fix, including the drops that do nothing