Closed patrickelectric closed 4 years ago
The problem is the i2c bus to scan/probe is hardcoded to 1
here: https://github.com/ArduPilot/ardupilot/blob/cd5c59773bb5d4d4cdd4ba77437b3ede40ff8662/libraries/AP_TemperatureSensor/TSYS01.cpp#L18
We can update init() with a bus number parameter, and configure the bus according to the hardware, similar to how we select GND_EXT_BUS in system.cpp.
attention @Williangalvani
Moved from: bluerobotics/ardusub#97 Original author: @jaxxzer
Feature request
The bus is hard coded, it needs to be determined at run time.
Platform [ ] All [ ] AntennaTracker [ ] Copter [ ] Plane [ ] Rover [x] Submarine