Merge branch 'S51EV_ECU' of http://ikuai.hua-hua.cn:23080/huahua/can_bootloader into S51EV_ECU
This commit is contained in:
commit
34b4afa2c2
@ -43,7 +43,9 @@ timer_bootcount.onTimer = function(){//boot时间定时器,100ms间隔
|
|||||||
}
|
}
|
||||||
|
|
||||||
Display = function(str){//显示日志
|
Display = function(str){//显示日志
|
||||||
mainForm.edit.print(tostring(time()) + " " + str);
|
var nowtime = time();
|
||||||
|
nowtime.format="%H:%M:%S";
|
||||||
|
mainForm.edit.print(tostring(nowtime) + " " + str);
|
||||||
}
|
}
|
||||||
//遍历目录
|
//遍历目录
|
||||||
import console;
|
import console;
|
||||||
|
@ -57,7 +57,8 @@ FuncDiag22Pro = function(data){
|
|||||||
case 0x1701 {
|
case 0x1701 {
|
||||||
var 水平 = (data[3]<<8) + (data[4]);
|
var 水平 = (data[3]<<8) + (data[4]);
|
||||||
var 靠背 = (data[5]<<8) + (data[6]);
|
var 靠背 = (data[5]<<8) + (data[6]);
|
||||||
FuncDisplay("水平电机当前位置霍尔数: " + 水平 + "靠背电机当前位置数" + 靠背);
|
FuncDisplay("水平当前位置: " ++ (水平-0x8000) );
|
||||||
|
FuncDisplay("靠背当前位置" ++ (靠背 - 0x8000) );
|
||||||
}
|
}
|
||||||
case 0x1702 {
|
case 0x1702 {
|
||||||
if(#data < 10){
|
if(#data < 10){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user