PX4-Autopilot: pwm app bug
When using the pwm app with “test” argument, e.g.
pwm test -c 1234 -p 1500
you do not get a clean pwm signal with only 1.5 ms pulses but you actually get some disarmed pulses (0.9 ms) in between. I noticed this issue when trying to actuate a DJI FOC ESC. The signal would just make the motor vibrate and make some noise. I guess you do not notice this issue with cheaper ESC’s.
@bkueng FYI
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (14 by maintainers)
At a glance I see that the pwm command is setting the servo output (via IOCTL) directly.
My guess is that this worked in the older releases when px4fmu was only running in HPWORK and the priority of HPWORK was much lower. As a result the
pwm test
would block the regular px4fmu update -> mix -> output loop.