|
|
@ -106,11 +106,10 @@ void PlateCodeScanerModule::initialize(int32_t moduleid, hardware_config_t* hard |
|
|
|
// osDelay(100);
|
|
|
|
// }
|
|
|
|
|
|
|
|
m_reg.laster_intensity = 10; |
|
|
|
m_reg.laster_intensity = 99; |
|
|
|
m_reg.scan_gain = 1; |
|
|
|
m_reg.scan_velocity = 500; |
|
|
|
m_reg.scan_start_pos = 0; |
|
|
|
m_reg.final_stop_pos = 0; |
|
|
|
m_reg.code_judgment_threshold = 0; |
|
|
|
m_reg.item = 0; |
|
|
|
m_reg.lot = 0; |
|
|
@ -126,7 +125,6 @@ int32_t PlateCodeScanerModule::module_xxx_reg(int32_t param_id, bool read, int32 |
|
|
|
PROCESS_REG_CFG(scan_gain); |
|
|
|
PROCESS_REG_CFG(scan_velocity); |
|
|
|
PROCESS_REG_CFG(scan_start_pos); |
|
|
|
PROCESS_REG_CFG(final_stop_pos); |
|
|
|
PROCESS_REG_CFG(code_judgment_threshold); |
|
|
|
PROCESS_REG_CFG(item); |
|
|
|
PROCESS_REG_CFG(lot); |
|
|
@ -142,7 +140,13 @@ int32_t PlateCodeScanerModule::module_xxx_reg(int32_t param_id, bool read, int32 |
|
|
|
int32_t PlateCodeScanerModule::module_stop() { |
|
|
|
m_thread.stop(); |
|
|
|
return 0; |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
int32_t PlateCodeScanerModule::module_active_cfg() { |
|
|
|
scaner_set_gain(m_reg.scan_gain / 10.0); |
|
|
|
laser_set_intensity(m_reg.laster_intensity); |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
int32_t PlateCodeScanerModule::plate_code_scaner_push_card_and_scan(int32_t final_stop_pos) { |
|
|
|
ZLOGI(TAG, "plate_code_scaner_push_card_and_scan: %d", final_stop_pos); |
|
|
|