mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 17:36:40 +08:00
drivers: Add TLA2528 ADC driver (#25898)
* tla2528 basic implementation (restarting driver still fails) * fixed probe function, restarting driver now works * -added reset call to init -added return value checks on all important transfers and retry if failed when possible -removed comments -removed unnecessary parameters of module * Introduced initialization-states that can be executed multiple times on failure * Added one more state s.t. init() only does probing * added communication error count _comms_errors * use get() instead of param_find * changed scheduling interval * start in reset state. check second byte in probe. add 2 retries to probe function * add space in front of comments * jump to reset state when another state fails * changed SAMPLE_INTERVAL to 10_ms * added static assert on number of channels in adc_report
This commit is contained in:
committed by
GitHub
parent
f7269c9c22
commit
8a2239f3e8
@@ -231,6 +231,12 @@ then
|
||||
ads7953 start -S
|
||||
fi
|
||||
|
||||
# ADC sensor tla2528 external I2C
|
||||
if param compare -s ADC_TLA2528_EN 1
|
||||
then
|
||||
tla2528 start -X
|
||||
fi
|
||||
|
||||
# probe for optional external I2C devices
|
||||
if param compare SENS_EXT_I2C_PRB 1
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user