任务执行命令验证写入电阻校准值成功
This commit is contained in:
@@ -528,7 +528,7 @@ int selfdev_bootinfo::dolater(int cmd, myarray data)
|
||||
// 这里开始检测
|
||||
qDebug("get bootinfo.");
|
||||
emit send_data_signal(cmd,myarray(1,0));
|
||||
HandleBoardCast *b=new slave_cmd();
|
||||
HandleBoardCast *b=new slave_cmd2();
|
||||
bool ack=slave->set_boardcast_handle(cfg_->calc_slave_addrs(),b);
|
||||
if(ack==false){
|
||||
qWarning("handle is busy.");
|
||||
@@ -683,14 +683,14 @@ int selfdev_measure_rescv::dolater(int cmd, myarray data)
|
||||
mycfg *cfg=syscfg();
|
||||
busy=1;
|
||||
connect(this, &selfdev_measure_rescv::send_to_m4_signal, m4, &prot_m4::send_data_slot);
|
||||
moter_down_cb_fun=[=](myarray data)
|
||||
moter_down_cb_fun=[=](myarray str)
|
||||
{
|
||||
m4->del_irq_fun(moter_down_cb_fun,"moter down");
|
||||
{
|
||||
// 这里开始检测
|
||||
qDebug("start check.");
|
||||
QList<int> addrs=cfg->calc_slave_addrs();
|
||||
HandleBoardCast *s=new slave_cmd();
|
||||
HandleBoardCast *s=new slave_cmd2();
|
||||
bool ack=slave->set_boardcast_handle(addrs,s);
|
||||
if(ack==false){
|
||||
qWarning("handle is busy.");
|
||||
@@ -757,7 +757,7 @@ protpc_export(0x42, get_selfdev_measure_rescv);
|
||||
|
||||
|
||||
|
||||
// 设置电阻校准
|
||||
// 设置电阻校准,这个只能每个板子设置一样的校准值
|
||||
int selfdev_set_rescv::dolater(int cmd, myarray data)
|
||||
{
|
||||
prot_slave *slave=protSlave();
|
||||
@@ -766,7 +766,7 @@ int selfdev_set_rescv::dolater(int cmd, myarray data)
|
||||
// 这里开始检测
|
||||
qDebug("set_rescv.");
|
||||
emit send_data_signal(cmd,myarray(1,0));
|
||||
HandleBoardCast *b=new slave_cmd();
|
||||
HandleBoardCast *b=new slave_cmd2();
|
||||
bool ack=slave->set_boardcast_handle(cfg_->calc_slave_addrs(),b);
|
||||
if(ack==false){
|
||||
qWarning("handle is busy.");
|
||||
@@ -802,7 +802,7 @@ void selfdev_set_rescv::slave_end_slot(int addr,int ack, slave_data data)
|
||||
static HandlePc *get_selfdev_set_rescv(){
|
||||
return new selfdev_set_rescv();
|
||||
}
|
||||
protpc_export(0x41, get_selfdev_set_rescv);
|
||||
//protpc_export(0x41, get_selfdev_set_rescv);
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user