The syscfg for the uwb-dw1000 sets the default TX_POWER for the device to -14.3:
|
DW1000_DEVICE_TX_PWR: |
|
description: 'Tx Power dBm' |
|
value: ((float)-14.3f) |
|
DW1000_DEVICE_ANT_GAIN: |
|
description: 'Antenna Gain dB' |
|
value: ((float)1.0f) |
On the other side the default dw1000_dev_cfg power settings sets a gain of 9dB as the default, but if DW1000_BIAS_CORRECTION_ENABLED is enabled the correction is not based on the configuration settings
in the default config but on the macros DW1000_DEVICE_TX_PWR and DW1000_DEVICE_ANT_GAIN.
|
.txrf={ |
|
.PGdly = TC_PGDELAY_CH5, |
|
//.power = 0x2A4A6A8A, |
|
.BOOSTNORM = dw1000_power_value(DW1000_txrf_config_9db, 2.5), |
|
.BOOSTP500 = dw1000_power_value(DW1000_txrf_config_9db, 2.5), |
|
.BOOSTP250 = dw1000_power_value(DW1000_txrf_config_9db, 2.5), |
|
.BOOSTP125 = dw1000_power_value(DW1000_txrf_config_9db, 2.5) |
|
}, |
https://github.com/Decawave/uwb-core/blob/c6cf518e39a49f7084b229ee4ed7ab7ee80b2e5d/lib/uwb_rng/src/uwb_rng.c#L1027-L1039
I'm therefore quite unclear on what each of these values mean and what values should be considered for BIAS_CORRECTION
The
syscfgfor theuwb-dw1000sets the defaultTX_POWERfor the device to -14.3:uwb-dw1000/hw/drivers/uwb/uwb_dw1000/syscfg.yml
Lines 28 to 33 in 9503f2a
On the other side the default
dw1000_dev_cfgpower settings sets a gain of 9dB as the default, but ifDW1000_BIAS_CORRECTION_ENABLEDis enabled the correction is not based on the configuration settingsin the default config but on the macros
DW1000_DEVICE_TX_PWRandDW1000_DEVICE_ANT_GAIN.uwb-dw1000/hw/drivers/uwb/uwb_dw1000/src/dw1000_hal.c
Lines 77 to 84 in 9503f2a
https://github.com/Decawave/uwb-core/blob/c6cf518e39a49f7084b229ee4ed7ab7ee80b2e5d/lib/uwb_rng/src/uwb_rng.c#L1027-L1039
I'm therefore quite unclear on what each of these values mean and what values should be considered for BIAS_CORRECTION