BridgeGain not getting set
Posted: Wed Jul 03, 2019 10:02 am
I've modified the VoltageRatioInput python example to set the Bridge Gain, but it doesn't seem to be actually setting. Here is the code and logs:
After this, the code goes on to log some voltage ratios, so I know it is communicating with the hub ok.
Code: Select all
# inside the onAttachHandler
print('bridge gain before', ph.getBridgeGain())
ph.setBridgeGain(BridgeGain.BRIDGE_GAIN_128)
print('bridge gain after', ph.getBridgeGain())
Code: Select all
# log:
bridge gain before 8
bridge gain after 8