|
@ -9,7 +9,7 @@ using namespace iflytop; |
|
|
{ \ |
|
|
{ \ |
|
|
int32_t ecode = func; \ |
|
|
int32_t ecode = func; \ |
|
|
if (ecode != 0) { \ |
|
|
if (ecode != 0) { \ |
|
|
ZLOGE(TAG, "do %s fail, error %s(%d)", #func, err::error2str(ecode), ecode); \ |
|
|
|
|
|
|
|
|
ZLOGE(TAG, "[%d] do %s fail, error %s(%d)", __LINE__, #func, err::error2str(ecode), ecode); \ |
|
|
return ecode; \ |
|
|
return ecode; \ |
|
|
} \ |
|
|
} \ |
|
|
} |
|
|
} |
|
@ -18,7 +18,7 @@ using namespace iflytop; |
|
|
{ \ |
|
|
{ \ |
|
|
int32_t ecode = func; \ |
|
|
int32_t ecode = func; \ |
|
|
if (ecode != 0) { \ |
|
|
if (ecode != 0) { \ |
|
|
ZLOGE(TAG, "do %s fail, error %s(%d)", #func, err::error2str(ecode), ecode); \ |
|
|
|
|
|
|
|
|
ZLOGE(TAG, "[%d]do %s fail, error %s(%d) ", __LINE__, #func, err::error2str(ecode), ecode); \ |
|
|
creg.module_errorcode = ecode; \ |
|
|
creg.module_errorcode = ecode; \ |
|
|
return; \ |
|
|
return; \ |
|
|
} \ |
|
|
} \ |
|
@ -550,7 +550,7 @@ int32_t PipetteModule::do_pipette_distribut(int32_t ul, int32_t zmotor_v) { |
|
|
DO_IN_THREAD(befor_run()); |
|
|
DO_IN_THREAD(befor_run()); |
|
|
|
|
|
|
|
|
int32_t distribut_ul = ul; |
|
|
int32_t distribut_ul = ul; |
|
|
if (distribut_ul == 0) distribut_ul = m_state.load_val_ul; |
|
|
|
|
|
|
|
|
if (distribut_ul == 0) distribut_ul = m_state.load_val_ul + 1; |
|
|
DO_IN_THREAD(m_smtp2.pump_distribut(m_config.aspirate_distribut_pump_vel, distribut_ul)); |
|
|
DO_IN_THREAD(m_smtp2.pump_distribut(m_config.aspirate_distribut_pump_vel, distribut_ul)); |
|
|
if (zmotor_v != 0) { |
|
|
if (zmotor_v != 0) { |
|
|
submotor->moveBy(-LLF_DPOS, zmotor_v); |
|
|
submotor->moveBy(-LLF_DPOS, zmotor_v); |
|
@ -741,10 +741,13 @@ int32_t PipetteModule::after_run() { |
|
|
|
|
|
|
|
|
m_state.dul = m_state.pump_after_pos_ul - m_state.pump_before_pos_ul; |
|
|
m_state.dul = m_state.pump_after_pos_ul - m_state.pump_before_pos_ul; |
|
|
|
|
|
|
|
|
|
|
|
ZLOGI(TAG, "after_run before:%d after:%d dul:%d", m_state.pump_before_pos_ul, m_state.pump_after_pos_ul, m_state.dul); |
|
|
|
|
|
|
|
|
creg.module_status = 0; |
|
|
creg.module_status = 0; |
|
|
return 0; |
|
|
return 0; |
|
|
|
|
|
|
|
|
tag_err: |
|
|
tag_err: |
|
|
|
|
|
ZLOGI(TAG, "after_run detecte, error %d", err); |
|
|
creg.module_status = 2; |
|
|
creg.module_status = 2; |
|
|
creg.module_errorcode = err; |
|
|
creg.module_errorcode = err; |
|
|
return 0; |
|
|
return 0; |
|
|