为什么我在配置了长距离之后,测量距离只有1m多。
if (Status == VL53L0_ERROR_NONE)
{
Status = VL53L0_SetLimitCheckValue(pMyDevice, \
VL53L0_CHECKENABLE_SIGNAL_RATE_FINAL_RANGE, \
(FixPoint1616_t)(0.1*65536));
}
if (Status == VL53L0_ERROR_NONE)
{
Status = VL53L0_SetLimitCheckValue(pMyDevice, \
VL53L0_CHECKENABLE_SIGMA_FINAL_RANGE, \
(FixPoint1616_t)(60*65536));
}
if (Status == VL53L0_ERROR_NONE)
{
Status = VL53L0_SetMeasurementTimingBudgetMicroSeconds(pMyDevice,33000);
}
if (Status == VL53L0_ERROR_NONE)
{
Status = VL53L0_SetVcselPulsePeriod(pMyDevice, \
VL53L0_VCSEL_PERIOD_PRE_RANGE, 18);
}
if (Status == VL53L0_ERROR_NONE)
{
Status = VL53L0_SetVcselPulsePeriod(pMyDevice, \
VL53L0_VCSEL_PERIOD_FINAL_RANGE, 14);
}
|