Files
ASER/App/VL53L1X_API/platform/vl53_calibration_config.h
2026-04-08 12:49:16 +08:00

30 lines
847 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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 */