mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 22:50:49 +08:00
PCA9685_PWM_FREQ and PCA9685_SCHD_HZ controlled the same physical PWM rate through two independent parameters that had to be kept in sync manually by the user, and neither was exposed in the ground station's Actuators tab. Merge both into PCA9685_PWM_FREQ, which now drives both the chip's PWM frequency and the I2C update rate, and expose it as a single config field on the actuator output group. PCA9685_SCHD_HZ is removed outright, with no automatic migration: a saved PCA9685_PWM_FREQ carries over for free since the name is unchanged, and PCA9685_SCHD_HZ was intentionally left orphaned rather than migrated, so that inspecting main.cpp or PCA9685.cpp is enough to understand the current behavior of the driver. Verified on real Skynode S hardware: the parameter reaches the Actuators tab in the ground station, and the PWM frequency measured with a logic analyzer on the PCA9685 output pin matches the configured value. Assisted-by: Claude:claude-sonnet-5 Signed-off-by: danielbuleandra <daniel.buleandra@auterion.com>
PX4 User Guide
This repo contains the source code for the PX4 User Guide.
Note
Contributions and Translations to this guide are very welcome!