Open Drime1337 opened 9 months ago
The board_adc driver is not running.
Is there a specific reason why not? The board_adc
driver is publishing the system_power
uORB message that is required for the system power check to pass. (You can disable the system power check via the CBRK_SUPPLY_CHK
parameter).
@Drime1337 ?
@niklaut As far as I know it's disabled the moment you enable the ads1115 parameter. If I recall correctly @dagar was suggesting something in that direction as well. I don't know why it's disabled as a default while the ads1115 is active though.
Ah, indeed. It's coded like that in the rc.board_sensors
, apparently it was added by https://github.com/PX4/PX4-Autopilot/pull/19549/files#diff-70d0f8c00e5bed2400f3d0f0e59f82806a8097b42766d3511d28918e71b90fc8R11
if param compare -s ADC_ADS1115_EN 1
then
ads1115 start -X
else
board_adc start
fi
@davids5 why is the board_adc disabled here?
Hm, it seems like it tries to avoid board_adc
from also publishing to the adc_report
topic.
I think starting the board_adc
with the -n
flag like so should fix this issue. Can you try this @Drime1337?
if param compare -s ADC_ADS1115_EN 1
then
ads1115 start -X
board_adc start -n
else
board_adc start
fi
Quick update so you guys are not in the dark - I do not have access to another 6X / ADS1115 combo at the moment, but will most likely have one in 1-2 Weeks. I'll let you know once i have it.
I encountered this same issue with an ADS1115 measuring battery voltage and current, and a Pixhawk 6X-RT. The fix to rc.board_sensors as proposed above by @niklaut works.
Describe the bug
As discussed with @dagar and @dk7xe in the developer call, the issue regarding the ADS1115 with 6x: While using the HolyBro 6x with an ADS1115 ADC we do run into a critical error "System Power Unavailable". We're using a 12s setup with version 1.14 on a Holybro 6x standard board. The voltage- and current readings are valid. Parameters for the ADS1115 are Set and the readings do work. The board_adc driver is not running.
To Reproduce
Holybro 6x standard board setup. Connect External ADC (ADS1115) to i2c ports on power1/2 Power Setup: Bat1 -> Power Module Set up parameters: ADC_ADS1115_EN = enable BAT1_I_CHANNEL = 1 BAT1_V_CHANNEL = 0
boot the FC check logs or QGC messages for critical error messages
Expected behavior
No Error on booting
Screenshot / Media
Flight Log
Mavlink console outputs:
console output:
Software Version
1.14 stable
Flight controller
Holybro 6X standard set
Vehicle type
Multicopter
How are the different components wired up (including port information)
ADC/ADS1115 to Power1 ADC/ADS1115 to Power2
Additional context
The magnetometer output is correct, it's 90° tilted and can be ignored.