PX4-Autopilot
PX4-Autopilot copied to clipboard
ist8310: Add I2C communication error handling
Solved Problem
There is no I2C communication error handling. I2C communication is vulnerable to external noise.
Solution
Add I2X communication error processing.
Changelog Entry
None
Alternatives
None
Test coverage
None
Context
This is already implemented lower level in our I2C class, take a look for _retries. https://github.com/PX4/PX4-Autopilot/blob/main/src/lib/drivers/device/nuttx/I2C.cpp
@dagar san. I have added a retransmission count setting in the constructor.
@dagar do you think this is necessary?