PX4-Autopilot: Holybro ESC problems (can't fly with master)
Describe the bug
Cannot fly my holybro s500 kit with master
. It works fine on v1.9.2
. I’ve also tracked this on px4 discuss here.
To Reproduce Using this holybro s500 kit: https://shop.holybro.com/_p1153.html
Expected behavior There should be no ESC issues between PX4 firmware versions. There is funny business happening on the actuator outputs during boot.
Below are screenshots of a scope on motor output 1 during first 1 second of boot.
Log Files and Screenshots
v1.9.2
master
As you can see in the images above, v1.9.2
has 5 pulses of 900us width spaced at 20ms before the 400hz 900us outputs actually kick on. I am not sure if this is related, but it was the only thing I found.
Additional context
This has been broken for a while now, I’d really like to be able to fly master
…
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 27 (27 by maintainers)
Unfortunately I can’t continue the bisect with the s500 until I get some new props. I’m going to setup my 250 airframe in the mean time and see if I can’t reproduce the issue. Travelling this week so I’ll be back on it the following week.
On Sun, Nov 3, 2019, 1:49 PM Mathieu Bresciani notifications@github.com wrote:
That’s not really concerning because we’ve changed the filtering pipeline to accommodate high-performance racers so that the cutoff setting is more effective. I’ll let @bkueng / @bresch chime in, but that frame has a lot of flex and so what I’m seeing here is what I would expect with 30 vs 80 Hz cutoff.
Changing IMU_GYRO_CUTOFF from 80 back to 30 solved the issue 😕
I can’t remember why I changed it away from default in the first place… 🤷♂️ (I think it was early on during bringup and it was flying like crap and someone suggested to change the gyro cutoff). But still concerning that there is such a large difference in behavior between two versions. Any ideas?
https://review.px4.io/plot_app?log=b214a366-11a8-4ca3-9850-0faa3fd62c57
Here’s a bench test with no props attached, I arm the vehicle and let it idle for a little bit, then ramp up the throttle to 0.5 and then back down to idle.
1.9.2 https://review.px4.io/plot_app?log=bf9f4248-a7e5-42dd-9f83-e60df970ad0a
master https://review.px4.io/plot_app?log=eccaa7ec-6fb8-4e93-88dd-9689243c1c05
You can clearly see the raw gyro/accel go absolutely nuts on
master
as soon as there is more than idle throttle.Now the hard part here is determining cause/effect. I did a diff
git diff v1.9.2 master -- src/drivers/imu/mpu6000/
and nothing changes functionally with the driver (20689 is crammed in with mpu600). I verified on the bench that the sensor is being selected correctly and that the data more or less looks the same when you poke it. Also notice the vibration levels between1.9.2
andmaster
are pretty much the same at idle throttle, the data really only gets bad when you throttle up.This leads me to believe the crazy vibrations are real vibrations – caused by the shuddering of the motors (Video of shuddering). If you take a closer look at the actuator outputs, you can see on
master
the output values do not increase smoothly, but are rather jagged.1.9.2
master

Yes I will investigate this early next week when I am back in town.
Sorry I think I misunderstood the question on the dev-call, I am indeed connected via IO PWM OUT
I have requested hardware so that I can help with this. but I will not be able to work on it till after I return on the 16th.