V2.09 使用任务插槽设置电阻校准值成功

This commit is contained in:
ranchuan
2023-12-20 18:27:37 +08:00
parent ddf40324f7
commit d709a522ea
12 changed files with 127 additions and 18 deletions

View File

@@ -214,7 +214,7 @@ array_def *elec_bootinfo(void)
board_st.resistor_diff=sys_param()->resistor_diff;
//board_st.hard_v=rt_tick_get()/1000;
board_st.hard_v=HARD_VERSION;
board_st.soft_v=(int)(str_atof(SOFT_VERSION)*100);
board_st.soft_v=(int)(str_atof(SOFT_VERSION)*100+0.5);
array_def *r=arr_creat();
arr_append(r,0);
arr_appends(r,&board_st,sizeof(BoartCheck_st));
@@ -629,3 +629,33 @@ array_def *elec_code(array_def *uid_psw)
// 执行任务插槽
array_def *elec_check_slot(void)
{
self_def *s=&g_self;
s->task_par=0;
s->chip_type=0;
uint8_t taskid=0;
uint8_t res=0;
s->task_index=0;
array_def *r=arr_creat();
res=checker_runcfg.power_prapare_exe;
memset(&checker_runcfg,0,sizeof(Checker_RunCfg_st));
checker_runcfg.power_prapare_exe=res;
checker_runcfg.param_count=1;
checker_runcfg.params[0]=1;
CheckerExt_Slot();
elec_judge_def *e=malloc(sizeof(elec_judge_def));
elec_judge(e,s->task_num,checker_runcfg.Task_Result,
checker_runcfg.Task_Excute,
(uint8_t *)checker_runcfg.Test_Rtv,&res,0);
free(e);
arr_append(r,res);
return arr_temp(r);
}