From b72a38a117aeb327ba131673d5544eaf62966582 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 7 Jul 2024 17:18:15 +0800 Subject: [PATCH] update --- .settings/language.settings.xml | 4 ++-- .../subboards/subboard90_optical_module/optical_module_v2.cpp | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml index 0c68457..68ccc9d 100644 --- a/.settings/language.settings.xml +++ b/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/usrc/subboards/subboard90_optical_module/optical_module_v2.cpp b/usrc/subboards/subboard90_optical_module/optical_module_v2.cpp index 4e4882b..298fc22 100644 --- a/usrc/subboards/subboard90_optical_module/optical_module_v2.cpp +++ b/usrc/subboards/subboard90_optical_module/optical_module_v2.cpp @@ -62,15 +62,16 @@ void OpticalModuleV2::initialize(int32_t moduleid, hardware_config_t* hardwarecf m_t_amp_sw_io.setState(true); m_f_amp_sw_io.setState(true); - m_reg.t_pos_offset = 3657; - m_reg.f_pos_offset = 2512; - m_reg.t_reverse_scan_pos_offset = 3657 - 1200; - m_reg.f_reverse_scan_pos_offset = 1312; + m_reg.t_pos_offset = 3723; + m_reg.f_pos_offset = 2559; + m_reg.t_reverse_scan_pos_offset = 3723 - 1200; + m_reg.f_reverse_scan_pos_offset = 2559 - 1200; m_reg.scan_step_interval = 1; m_reg.scan_pointnum = 1200; - ZLOGI(TAG, "-----------------module info--------------") ZLOGI(TAG, "f_detector max gain : %f", f_detector_raw_gain_to_gain(255)); + ZLOGI(TAG, "-----------------module info--------------"); + ZLOGI(TAG, "f_detector max gain : %f", f_detector_raw_gain_to_gain(255)); ZLOGI(TAG, "f_detector min gain : %f", f_detector_raw_gain_to_gain(1)); ZLOGI(TAG, "t_detector max gain : %f", t_detector_raw_gain_to_gain(255)); ZLOGI(TAG, "t_detector min gain : %f", t_detector_raw_gain_to_gain(1));