mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 06:53:33 +08:00
* Adds configurable I2C address for PCA9685 PWM driver Introduces a parameter to set the I2C address for the PCA9685 PWM output driver, enhancing flexibility for hardware variations. Updates documentation and board initialization scripts to support the new configuration and streamline device startup. * Update src/drivers/pca9685_pwm_out/module.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/drivers/pca9685_pwm_out/module.yaml --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Jacob Dahl <37091262+dakejahl@users.noreply.github.com>
25 lines
445 B
Bash
25 lines
445 B
Bash
#!/bin/sh
|
|
#
|
|
# ARKFPV specific board sensors init
|
|
#------------------------------------------------------------------------------
|
|
|
|
board_adc start
|
|
|
|
if ver hwtypecmp ARKFPV000
|
|
then
|
|
# Internal SPI bus IIM42653
|
|
iim42653 -R 14 -s -b 1 start
|
|
fi
|
|
|
|
# Internal magnetometer on I2C
|
|
iis2mdc -R 0 -I -b 4 start
|
|
|
|
# Internal Baro on I2C
|
|
bmp388 -I -b 2 start
|
|
|
|
# Start an external PWM generator
|
|
if param greater PCA9685_EN_BUS 0
|
|
then
|
|
pca9685_pwm_out start
|
|
fi
|