30 lines
847 B
C
30 lines
847 B
C
|
|
#ifndef VL53L1_CALIBRATION_CONFIG_H
|
|||
|
|
#define VL53L1_CALIBRATION_CONFIG_H
|
|||
|
|
|
|||
|
|
#include <stdint.h>
|
|||
|
|
|
|||
|
|
#include "vl53l1_def.h"
|
|||
|
|
|
|||
|
|
typedef struct {
|
|||
|
|
uint8_t calibrated;
|
|||
|
|
VL53L1_CalibrationData_t data;
|
|||
|
|
} Vl53L1RuntimeCalibration_t;
|
|||
|
|
|
|||
|
|
/*
|
|||
|
|
* VL53L1X 按 UM2356 建议应在产线完成 RefSPAD / Offset / Xtalk 校准,
|
|||
|
|
* 上电后在 DataInit() + StaticInit() 之后用 SetCalibrationData() 回灌。
|
|||
|
|
*
|
|||
|
|
* 当前先提供空白占位,未标定时保持 calibrated = 0,驱动将跳过加载。
|
|||
|
|
*/
|
|||
|
|
static const Vl53L1RuntimeCalibration_t k_vl53l1_left_calibration[2] = {
|
|||
|
|
{ .calibrated = 0u, .data = {0} },
|
|||
|
|
{ .calibrated = 0u, .data = {0} },
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
static const Vl53L1RuntimeCalibration_t k_vl53l1_right_calibration[2] = {
|
|||
|
|
{ .calibrated = 0u, .data = {0} },
|
|||
|
|
{ .calibrated = 0u, .data = {0} },
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif /* VL53L1_CALIBRATION_CONFIG_H */
|