|
|
@ -62,8 +62,8 @@ 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 = 4005; |
|
|
|
m_reg.f_pos_offset = 2860; |
|
|
|
m_reg.t_pos_offset = (4005 - 331); |
|
|
|
m_reg.f_pos_offset = (2860 - 331); |
|
|
|
m_reg.scan_step_interval = 1; |
|
|
|
m_reg.scan_pointnum = 1200; |
|
|
|
|
|
|
@ -533,6 +533,7 @@ int32_t OpticalModuleV2::a8k_opt_v2_t_readVal(int32_t* lasteradc, int32_t* scana |
|
|
|
} |
|
|
|
|
|
|
|
int32_t OpticalModuleV2::a8k_opt_v2_f_open_laster(int32_t lasterGain, int32_t scanGain) { |
|
|
|
ZLOGI(TAG, "a8k_opt_v2_f_open_laster %d %d", lasterGain, scanGain); |
|
|
|
a8000_optical_set_laster_gain(kf_optical, lasterGain); |
|
|
|
a8000_optical_set_scan_amp_gain(kf_optical, scanGain); |
|
|
|
// 选通ADC反馈通道
|
|
|
@ -544,6 +545,7 @@ int32_t OpticalModuleV2::a8k_opt_v2_f_open_laster(int32_t lasterGain, int32_t sc |
|
|
|
return 0; |
|
|
|
} |
|
|
|
int32_t OpticalModuleV2::a8k_opt_v2_f_close_laster() { |
|
|
|
ZLOGI(TAG, "a8k_opt_v2_f_close_laster"); |
|
|
|
a8000_optical_close_laser(kf_optical); |
|
|
|
select_f_channel(0); |
|
|
|
return 0; |
|
|
@ -554,5 +556,6 @@ int32_t OpticalModuleV2::a8k_opt_v2_f_readVal(int32_t* lasteradc, int32_t* scana |
|
|
|
*scanadc = adcval; |
|
|
|
a8000_optical_read_laster_adc_val(kf_optical, &adcval); |
|
|
|
*lasteradc = adcval; |
|
|
|
ZLOGI(TAG, "a8k_opt_v2_f_readVal %d %d", *lasteradc, *scanadc); |
|
|
|
return 0; |
|
|
|
} |