# Payload drop and servo pwm setting in mission mode

**URL:** <https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846>\
**Category:** PX4 Autopilot\
**Created:** [July 8, 2019, 8:00pm UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846 "2019-07-08T20:00:37Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![1Gump](https://discuss.px4.io/user_avatar/discuss.px4.io/1gump/32/5604_2.png) [@1Gump](https://discuss.px4.io/u/1Gump)\
**Post date:** [July 8, 2019, 8:00pm UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846/1 "2019-07-08T20:00:37Z")

</div>

i tried to use the qgroundcontrol setting (mission) to activate a servo to a specified PWM setting, but got no response (that was noticeable.  
.  
servo # in mission waypoint menu was “0”, pwm was 775.  
pwm setting was 775, which was set in “min” for the aux1 servo (default remained at 1000)  
.  
i had rc channel 8 mapped to (passthru) aux1 for some tests, for others i unmapped the rc from aux1.  
.  
the servo works when controlled from the RC Tx even in mission mode. (if it is mapped in qgroundcontrol).  
,  
how do i use the payload drop commands (BD\_\*) ?

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [July 10, 2019, 8:48am UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846/2 "2019-07-10T08:48:35Z")

</div>

What Pixhawk are you using? What version of PX4 are you using? What is the exact mission? What airframe and mixer configuration have you selected?

---

<div class="post-metadata">

**Author:** ![1Gump](https://discuss.px4.io/user_avatar/discuss.px4.io/1gump/32/5604_2.png) [@1Gump](https://discuss.px4.io/u/1Gump)\
**Post date:** [July 11, 2019, 3:11pm UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846/3 "2019-07-11T15:11:36Z")

</div>

hi @JulianOes,  
CUAV Pixhack V5  
px4 1.9.0  
qgc 3.5.3  
mission: RWTO; WP1=TO; WP2=WP; WP3=loiter(time); WP4=WP;WP5=WP;WP6=Set Servo=Servo 0, PWM 775; WP7=WP; WP8/9=Landing pattern.  
Airframe: basic plane  
mixer config: What you talkin bout, willis?  
.  
btw, I tried another method… using camera trigger on WP setting, camera trigger to aux1. camera trigger works when ‘tested’ (qgc camera page), but mission doesn’t.

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [July 11, 2019, 4:26pm UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846/4 "2019-07-11T16:26:12Z")

</div>

Ok. I don’t think the do\_set\_servo command for the mission is supported, so that could explain the problem.  
Can you try the camera trigger in the mission then?

---

<div class="post-metadata">

**Author:** ![1Gump](https://discuss.px4.io/user_avatar/discuss.px4.io/1gump/32/5604_2.png) [@1Gump](https://discuss.px4.io/u/1Gump)\
**Post date:** [July 11, 2019, 5:58pm UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846/5 "2019-07-11T17:58:07Z")

</div>

yes. I did try the camera trigger (seend of previous post). it works when the qgc ‘camera test - “trigger camera”’ button is pressed (before arming), but mission with neither a start image capture WP or a WP with a camera trigger added produce servo activation. Actually, when I land and disarm, even the qcg “camera test - trigger camera” button won’t trigger servo movement any more. FC needs to reboot to reactivate.  
.  
I just noticed (running tlog) that I didn’t check the “mode” box in the camera add for the WP item. it is grayed out with “photo”, so I assumed it was ok. now, when I check that box, subsequent mission items’ numbers increment. I wonder if that will have an effect.

is there a parameter or “mapping” that i’m not aware of? tthen why would the test work but mission not?  
.  
btw,  
trig\_interface : generic pwm  
trig\_mode: time base, on command  
trig \_act\_time: 3000ms  
trig\_pwm\_shoot:775us

---

<div class="post-metadata">

**Author:** ![1Gump](https://discuss.px4.io/user_avatar/discuss.px4.io/1gump/32/5604_2.png) [@1Gump](https://discuss.px4.io/u/1Gump)\
**Post date:** [July 14, 2019, 2:15pm UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846/6 "2019-07-14T14:15:40Z")

</div>

No joy checking the"mode" box either. Couldn’t get any mission controlled servo to work at all. Can’t figure it out.

---

<div class="post-metadata">

**Author:** ![JulianOes](https://discuss.px4.io/user_avatar/discuss.px4.io/julianoes/32/30_2.png) [@JulianOes](https://discuss.px4.io/u/JulianOes)\
**Post date:** [July 19, 2019, 6:29am UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846/7 "2019-07-19T06:29:14Z")

</div>

So have you tried to use the camera trigger as part of the mission?

---

<div class="post-metadata">

**Author:** ![1Gump](https://discuss.px4.io/user_avatar/discuss.px4.io/1gump/32/5604_2.png) [@1Gump](https://discuss.px4.io/u/1Gump)\
**Post date:** [July 19, 2019, 5:24pm UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846/8 "2019-07-19T17:24:17Z")

</div>

is that different than what i mention in post#3 and post#5 ? i’ll take look and see if i can find a different option in the mission definitions.

---

<div class="post-metadata">

**Author:** ![kpetrykin](https://discuss.px4.io/user_avatar/discuss.px4.io/kpetrykin/32/4110_2.png) [@kpetrykin](https://discuss.px4.io/u/kpetrykin)\
**Post date:** [October 24, 2019, 4:50pm UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846/9 "2019-10-24T16:50:49Z")

</div>

If you’re still interested in dropping something from the aircraft during mission, check this PR out: [https://github.com/PX4/Firmware/pull/10320](https://github.com/PX4/Firmware/pull/10320)

---

<div class="post-metadata">

**Author:** ![Yuthika\_Sagarage](https://discuss.px4.io/user_avatar/discuss.px4.io/yuthika_sagarage/32/3809_2.png) [@Yuthika\_Sagarage](https://discuss.px4.io/u/Yuthika_Sagarage)\
**Post date:** [February 12, 2020, 12:51pm UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846/10 "2020-02-12T12:51:15Z")

</div>

Hi, i’m trying to use your pr, could you guide me on how to test the pr on SITL ?  
I’m able to build it as of now

---

<div class="post-metadata">

**Author:** ![kpetrykin](https://discuss.px4.io/user_avatar/discuss.px4.io/kpetrykin/32/4110_2.png) [@kpetrykin](https://discuss.px4.io/u/kpetrykin)\
**Post date:** [February 14, 2020, 10:52am UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846/11 "2020-02-14T10:52:14Z")

</div>

Hello!

Sorry, I don’t know in what sim solution you could test this setup.  
I made several “table” tests with RC-switch and QGC Custom widget and then in-flight and mission tests.

---

<div class="post-metadata">

**Author:** ![Yuthika\_Sagarage](https://discuss.px4.io/user_avatar/discuss.px4.io/yuthika_sagarage/32/3809_2.png) [@Yuthika\_Sagarage](https://discuss.px4.io/u/Yuthika_Sagarage)\
**Post date:** [February 14, 2020, 1:28pm UTC](https://discuss.px4.io/t/payload-drop-and-servo-pwm-setting-in-mission-mode/11846/12 "2020-02-14T13:28:12Z")

</div>

@kpetrykin ya I thought so, I will be trying the pr next week, thanks for the PR.
