PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.39k stars 13.46k forks source link

Some AUX pwm outputs go lower on arm #14675

Open Thijs---- opened 4 years ago

Thijs---- commented 4 years ago

Describe the bug When the UAV is armed (via RC), some AUX pwm outputs (actuator_outputs_1) shortly go to a lower value, although this is not commanded via an actuator_control message. It seems that this only happens with AUX outputs who's PWM_AUX_DIS is set.

To Reproduce Steps to reproduce the behavior:

  1. change PWM_AUX_DIS2 (or another) from -1 to 100
  2. (set SDLOG_MODE 0 -> 1)
  3. pre-arm UAV via onboard arm-switch
  4. arm via RC
  5. see in log: during 2nd arming the actuator_outputs_1[1] goes down for a short while

Expected behavior The output should be following the commanded value via the mixer file, thus stay constant.

Log Files and Screenshots Always provide a link to the flight log file:

Add screenshots to help explain your problem. 1st log: Screenshot from 2020-04-15 14-58-24 Note that the arming_state is scaled 2nd and 3rd log: Screenshot from 2020-04-15 14-49-29 Note that the arming_state is scaled

Drone (please complete the following information):

Additional context Add any other context about the problem here.

dagar commented 4 years ago

Could you please re-test this on the current v1.11.0-beta1 (or master)? If it's still an issue I'd like to make sure it's fixed for the upcoming v1.11.0 stable release.

Thijs---- commented 4 years ago

I Tested with v1.11.0-beta1: PX4 Flight Review (AUX output chart) Same effect: with PWM_AUX_DIS2 set too 100, on arm AUX output 1 goes down to 100, then 1050 and ramp up to 1500 again.

Thijs---- commented 4 years ago

Two updates:

  1. I also tested with PWM_AUX_DIS2 set to 1900: on arm AUX output 1 goes shortly to 1900 and direct back to commanded value: PX4 Flight review. So same behavior, except there is no ramp up from 1050.

  2. I also noticed during another test that if even no PWM_AUX_DIS is set, this behavior occurs. In this PX4 Flight review the AUX output 0 is commanded to 1000, on arm it goes shortly to 1500 (default disarm pwm).

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

JaCoHSU commented 2 months ago

@Thijs---- I am facing the same problem. Is there any solution? I figured out that this happens only at the first arming after boot.

Thijs---- commented 2 months ago

Hi @JaCoHSU, I don't think there was a solution or workaround. I can't verify it, because I no longer have access to the project.