-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.9.60 version up #795
1.9.60 version up #795
Conversation
Add new Hardware(IOT SmartFarm)
change workflow, start when hit when-run button
로보링크 주미 미니 플랫폼 추가
에이럭스 프로보 커넥트 수정
에이럭스 테크닉(일반, 파워) 드라이버 버튼 문구 수정
[Roborisen] lostTimer 시간 변경
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
eslint
Unexpected space before function parentheses.
entry-hw/app/modules/iotsmartfarm.js
Line 315 in 7ee2a51
Module.prototype.reset = function () { |
Missing space before opening brace.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 313 to 318 in 7ee2a51
if( this.countDroneConnectionAttempt == 4){ | |
// console.log("Connection failed"); | |
this.countDroneConnectionAttempt = 0 ; | |
clearInterval(this.getStateInterval); | |
return | |
} |
Expected space(s) after "if".
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 433 in 7ee2a51
if(chunkData[i] == 0xff |
Operator '+' must be spaced.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 434 in 7ee2a51
&& chunkData[i+1] == 0x42 |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 504 to 505 in 7ee2a51
let msg="" | |
const ERR_NONE =0 |
Operator '=' must be spaced.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 505 in 7ee2a51
const ERR_NONE =0 |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 505 to 506 in 7ee2a51
const ERR_NONE =0 | |
const ERR_LOWBATT =this.BIT0 |
Operator '=' must be spaced.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 506 in 7ee2a51
const ERR_LOWBATT =this.BIT0 |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 506 to 507 in 7ee2a51
const ERR_LOWBATT =this.BIT0 | |
const ERR_CODE =this.BIT1 |
Operator '=' must be spaced.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 507 in 7ee2a51
const ERR_CODE =this.BIT1 |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 507 to 508 in 7ee2a51
const ERR_CODE =this.BIT1 | |
const ERR_TEMP =this.BIT3 |
Operator '=' must be spaced.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 508 in 7ee2a51
const ERR_TEMP =this.BIT3 |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 508 to 509 in 7ee2a51
const ERR_TEMP =this.BIT3 | |
const ERR_SENSORS =this.BIT4 |
Operator '=' must be spaced.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 509 in 7ee2a51
const ERR_SENSORS =this.BIT4 |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 509 to 510 in 7ee2a51
const ERR_SENSORS =this.BIT4 | |
const ERR_LOADER =this.BIT5 |
Operator '=' must be spaced.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 510 in 7ee2a51
const ERR_LOADER =this.BIT5 |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 510 to 511 in 7ee2a51
const ERR_LOADER =this.BIT5 | |
const ERR_ANGLE =this.BIT6 |
Operator '=' must be spaced.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 511 in 7ee2a51
const ERR_ANGLE =this.BIT6 |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 511 to 512 in 7ee2a51
const ERR_ANGLE =this.BIT6 | |
if (ErrFly == ERR_NONE){ |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 538 to 539 in 7ee2a51
let SPLIT_STRING = "------------------------------------\n" | |
let msg = "STATE_PITCH= " + (Math.round(this.sensor.Pitch, 3)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 539 in 7ee2a51
let msg = "STATE_PITCH= " + (Math.round(this.sensor.Pitch, 3)).toString() + "\n" |
Unexpected string concatenation.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 539 in 7ee2a51
let msg = "STATE_PITCH= " + (Math.round(this.sensor.Pitch, 3)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 539 in 7ee2a51
let msg = "STATE_PITCH= " + (Math.round(this.sensor.Pitch, 3)).toString() + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 539 to 540 in 7ee2a51
let msg = "STATE_PITCH= " + (Math.round(this.sensor.Pitch, 3)).toString() + "\n" | |
msg = msg + "STATE_ROLL= " + (Math.round(this.sensor.Roll, 3)).toString() + "\n" |
Unexpected string concatenation.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 540 in 7ee2a51
msg = msg + "STATE_ROLL= " + (Math.round(this.sensor.Roll, 3)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 540 in 7ee2a51
msg = msg + "STATE_ROLL= " + (Math.round(this.sensor.Roll, 3)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 540 in 7ee2a51
msg = msg + "STATE_ROLL= " + (Math.round(this.sensor.Roll, 3)).toString() + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 540 to 541 in 7ee2a51
msg = msg + "STATE_ROLL= " + (Math.round(this.sensor.Roll, 3)).toString() + "\n" | |
msg = msg + "STATE_YAW= " + (Math.round(this.sensor.Yaw, 3)).toString() + "\n" |
Unexpected string concatenation.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 541 in 7ee2a51
msg = msg + "STATE_YAW= " + (Math.round(this.sensor.Yaw, 3)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 541 in 7ee2a51
msg = msg + "STATE_YAW= " + (Math.round(this.sensor.Yaw, 3)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 541 in 7ee2a51
msg = msg + "STATE_YAW= " + (Math.round(this.sensor.Yaw, 3)).toString() + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 541 to 542 in 7ee2a51
msg = msg + "STATE_YAW= " + (Math.round(this.sensor.Yaw, 3)).toString() + "\n" | |
msg = msg + SPLIT_STRING |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 542 to 543 in 7ee2a51
msg = msg + SPLIT_STRING | |
Unexpected string concatenation.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 544 in 7ee2a51
msg = msg + "STATE_TEMP= " + (Math.round(this.sensor.SPL06_temp, 3)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 544 in 7ee2a51
msg = msg + "STATE_TEMP= " + (Math.round(this.sensor.SPL06_temp, 3)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 544 in 7ee2a51
msg = msg + "STATE_TEMP= " + (Math.round(this.sensor.SPL06_temp, 3)).toString() + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 544 to 545 in 7ee2a51
msg = msg + "STATE_TEMP= " + (Math.round(this.sensor.SPL06_temp, 3)).toString() + "\n" | |
Unexpected string concatenation.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 546 in 7ee2a51
msg = msg + "FusedHeight= " + (Math.round(this.sensor.FusedHeight, 3)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 546 in 7ee2a51
msg = msg + "FusedHeight= " + (Math.round(this.sensor.FusedHeight, 3)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 546 in 7ee2a51
msg = msg + "FusedHeight= " + (Math.round(this.sensor.FusedHeight, 3)).toString() + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 546 to 547 in 7ee2a51
msg = msg + "FusedHeight= " + (Math.round(this.sensor.FusedHeight, 3)).toString() + "\n" | |
Unexpected string concatenation.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 548 in 7ee2a51
msg = msg + "BATTERY= " + (Math.round(this.sensor.Battery, 3)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 548 in 7ee2a51
msg = msg + "BATTERY= " + (Math.round(this.sensor.Battery, 3)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 548 in 7ee2a51
msg = msg + "BATTERY= " + (Math.round(this.sensor.Battery, 3)).toString() + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 548 to 549 in 7ee2a51
msg = msg + "BATTERY= " + (Math.round(this.sensor.Battery, 3)).toString() + "\n" | |
Unexpected string concatenation.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 550 in 7ee2a51
msg = msg + "VER= " + this.VERSTR() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 550 in 7ee2a51
msg = msg + "VER= " + this.VERSTR() + "\n" |
A function with a name starting with an uppercase letter should only be used as a constructor.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 550 in 7ee2a51
msg = msg + "VER= " + this.VERSTR() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 550 in 7ee2a51
msg = msg + "VER= " + this.VERSTR() + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 550 to 551 in 7ee2a51
msg = msg + "VER= " + this.VERSTR() + "\n" | |
msg = msg + SPLIT_STRING |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 551 to 552 in 7ee2a51
msg = msg + SPLIT_STRING | |
msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n" |
Unexpected string concatenation.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 552 in 7ee2a51
msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 552 in 7ee2a51
msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n" |
A function with a name starting with an uppercase letter should only be used as a constructor.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 552 in 7ee2a51
msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n" |
Missing radix parameter.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 552 in 7ee2a51
msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 552 in 7ee2a51
msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 552 to 553 in 7ee2a51
msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n" | |
msg = msg + "LINE_NO= " + (this.sensor.LineNo) + "\n" |
Unexpected string concatenation.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 553 in 7ee2a51
msg = msg + "LINE_NO= " + (this.sensor.LineNo) + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 553 in 7ee2a51
msg = msg + "LINE_NO= " + (this.sensor.LineNo) + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 553 in 7ee2a51
msg = msg + "LINE_NO= " + (this.sensor.LineNo) + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 553 to 554 in 7ee2a51
msg = msg + "LINE_NO= " + (this.sensor.LineNo) + "\n" | |
msg = msg + "ERROR_NO= " + (this.sensor.LineError) + "\n" |
Unexpected string concatenation.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 554 in 7ee2a51
msg = msg + "ERROR_NO= " + (this.sensor.LineError) + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 554 in 7ee2a51
msg = msg + "ERROR_NO= " + (this.sensor.LineError) + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 554 in 7ee2a51
msg = msg + "ERROR_NO= " + (this.sensor.LineError) + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 554 to 555 in 7ee2a51
msg = msg + "ERROR_NO= " + (this.sensor.LineError) + "\n" | |
msg = msg + "ERROR_MSG= " + this.Errcode2Msg(this.sensor.ErrorCode) + "\n" |
Unexpected string concatenation.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 555 in 7ee2a51
msg = msg + "ERROR_MSG= " + this.Errcode2Msg(this.sensor.ErrorCode) + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 555 in 7ee2a51
msg = msg + "ERROR_MSG= " + this.Errcode2Msg(this.sensor.ErrorCode) + "\n" |
A function with a name starting with an uppercase letter should only be used as a constructor.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 555 in 7ee2a51
msg = msg + "ERROR_MSG= " + this.Errcode2Msg(this.sensor.ErrorCode) + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 555 in 7ee2a51
msg = msg + "ERROR_MSG= " + this.Errcode2Msg(this.sensor.ErrorCode) + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 555 to 556 in 7ee2a51
msg = msg + "ERROR_MSG= " + this.Errcode2Msg(this.sensor.ErrorCode) + "\n" | |
Unexpected string concatenation.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 557 in 7ee2a51
msg = msg + "DEBUG1= " + (Math.round(this.sensor.Debug_0, 6)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 557 in 7ee2a51
msg = msg + "DEBUG1= " + (Math.round(this.sensor.Debug_0, 6)).toString() + "\n" |
Strings must use singlequote.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 557 in 7ee2a51
msg = msg + "DEBUG1= " + (Math.round(this.sensor.Debug_0, 6)).toString() + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 557 to 558 in 7ee2a51
msg = msg + "DEBUG1= " + (Math.round(this.sensor.Debug_0, 6)).toString() + "\n" | |
msg = msg + "DEBUG2= " + (Math.round(this.sensor.Debug_1, 6)).toString() + "\n" |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 636 to 637 in 7ee2a51
this.sensor.M4 = parseInt(revdata[this.BT_INDEX_DATA_REV + 17 * 4 + 3]) | |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 640 to 641 in 7ee2a51
this.sensor.state_velocity_z = this.byte2float(this.BT_INDEX_DATA_REV + 20 * 4) | |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 648 to 649 in 7ee2a51
this.sensor.FusedHeight = this.byte2float(this.BT_INDEX_DATA_REV + 27 * 4) | |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 650 to 651 in 7ee2a51
this.sensor.VER = parseInt(revdata[this.BT_INDEX_DATA_REV + 28 * 4 + 0]) | |
this.sensor.ErrFly = parseInt(revdata[this.BT_INDEX_DATA_REV + 28 * 4 + 1]) |
Missing radix parameter.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 651 in 7ee2a51
this.sensor.ErrFly = parseInt(revdata[this.BT_INDEX_DATA_REV + 28 * 4 + 1]) |
Missing semicolon.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 651 to 652 in 7ee2a51
this.sensor.ErrFly = parseInt(revdata[this.BT_INDEX_DATA_REV + 28 * 4 + 1]) | |
let msg = this.Sensor2String(); |
A function with a name starting with an uppercase letter should only be used as a constructor.
entry-hw/app/modules/whalesbot_eagle_1001.js
Line 735 in 7ee2a51
await this.HandleRun(); |
cds: 0, | ||
switch1: 0, | ||
switch2: 0, | ||
switch3: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing trailing comma.
switch3: 0 | |
switch3: 0, |
display8: 0, | ||
display9: 0, | ||
isSend: 0, | ||
switch: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing trailing comma.
switch: 0 | |
switch: 0, |
}; | ||
} | ||
|
||
var IOTSMARTFARM = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DISPLAY7: 'display7', | ||
DISPLAY8: 'display8', | ||
DISPLAY9: 'display9', | ||
SWITCH: 'switch' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing trailing comma.
SWITCH: 'switch' | |
SWITCH: 'switch', |
//console.log(this.motoring.lcdTxt); | ||
}; | ||
|
||
Module.prototype.lostController = function() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tx_d[20] = motordata.display9; // Display | ||
tx_d[21] = 0x03; // End | ||
|
||
var checksum = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tx_d[21] = 0x03; // End | ||
|
||
var checksum = 0; | ||
for(var i = 3; i < 21; i++){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected space(s) after "for".
for(var i = 3; i < 21; i++){ | |
for (var i = 3; i < 21; i++){ |
tx_d[21] = 0x03; // End | ||
|
||
var checksum = 0; | ||
for(var i = 3; i < 21; i++){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tx_d[21] = 0x03; // End | ||
|
||
var checksum = 0; | ||
for(var i = 3; i < 21; i++){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space before opening brace.
for(var i = 3; i < 21; i++){ | |
for(var i = 3; i < 21; i++) { |
} | ||
|
||
tx_d[2] = checksum & 0xFF; | ||
return tx_d; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space before opening brace.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 307 to 330 in 7ee2a51
connectDrone(){ | |
this.getStateInterval = setInterval(()=>{ | |
if(this.countDroneConnectionAttempt == 0 || !this.isLockGetState()){ | |
// console.log("Connection Attempt",this.countDroneConnectionAttempt+1) | |
this.countDroneConnectionAttempt = this.countDroneConnectionAttempt +1 | |
if(this.isDroneConnection == false){ | |
if( this.countDroneConnectionAttempt == 4){ | |
// console.log("Connection failed"); | |
this.countDroneConnectionAttempt = 0 ; | |
clearInterval(this.getStateInterval); | |
return | |
} | |
} | |
else{ | |
// console.log("Connection succeed"); | |
// console.log("Drone is connected") | |
this.isDroneConnection = true; | |
this.countDroneConnectionAttempt = 0 ; | |
clearInterval(this.getStateInterval); | |
} | |
} | |
},this.getStateTimeSleep) | |
this.getStateInterval; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space before opening brace.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 309 to 327 in 7ee2a51
if(this.countDroneConnectionAttempt == 0 || !this.isLockGetState()){ | |
// console.log("Connection Attempt",this.countDroneConnectionAttempt+1) | |
this.countDroneConnectionAttempt = this.countDroneConnectionAttempt +1 | |
if(this.isDroneConnection == false){ | |
if( this.countDroneConnectionAttempt == 4){ | |
// console.log("Connection failed"); | |
this.countDroneConnectionAttempt = 0 ; | |
clearInterval(this.getStateInterval); | |
return | |
} | |
} | |
else{ | |
// console.log("Connection succeed"); | |
// console.log("Drone is connected") | |
this.isDroneConnection = true; | |
this.countDroneConnectionAttempt = 0 ; | |
clearInterval(this.getStateInterval); | |
} | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space before opening brace.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 312 to 319 in 7ee2a51
if(this.isDroneConnection == false){ | |
if( this.countDroneConnectionAttempt == 4){ | |
// console.log("Connection failed"); | |
this.countDroneConnectionAttempt = 0 ; | |
clearInterval(this.getStateInterval); | |
return | |
} | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space before opening brace.
entry-hw/app/modules/whalesbot_eagle_1001.js
Lines 610 to 654 in 7ee2a51
else if(this.revdata[this.BT_INDEX_CMD_REV] == this.BT_CMD_GETFLYSTATE1){ | |
this.sensor.btkey = parseInt(revdata[2] + revdata[3] * 256) | |
this.sensor.btstick1 = parseInt(revdata[4]) | |
this.sensor.btstick2 = parseInt(revdata[5]) | |
this.sensor.btstick3 = parseInt(revdata[6]) | |
this.sensor.btstick4 = parseInt(revdata[7]) | |
this.sensor.ACC_x = this.byte2float(this.BT_INDEX_DATA_REV + 0 * 4) | |
this.sensor.ACC_y = this.byte2float(this.BT_INDEX_DATA_REV + 1 * 4) | |
this.sensor.ACC_z = this.byte2float(this.BT_INDEX_DATA_REV + 2 * 4) | |
this.sensor.Gypo_x = this.byte2float(this.BT_INDEX_DATA_REV + 3 * 4) | |
this.sensor.Gypo_y = this.byte2float(this.BT_INDEX_DATA_REV + 4 * 4) | |
this.sensor.Gypo_z = this.byte2float(this.BT_INDEX_DATA_REV + 5 * 4) | |
this.sensor.SPL06_temp = this.byte2float(this.BT_INDEX_DATA_REV + 6 * 4) | |
this.sensor.SPL06_Press = this.byte2float(this.BT_INDEX_DATA_REV + 7 * 4) | |
this.sensor.SPL06_asl = this.byte2float(this.BT_INDEX_DATA_REV + 8 * 4) | |
this.sensor.Pitch = this.byte2float(this.BT_INDEX_DATA_REV + 9 * 4) | |
this.sensor.Roll = this.byte2float(this.BT_INDEX_DATA_REV + 10 * 4) | |
this.sensor.Yaw = this.byte2float(this.BT_INDEX_DATA_REV + 11 * 4) | |
this.sensor.Battery = this.byte2float(this.BT_INDEX_DATA_REV + 12 * 4) | |
this.sensor.LaserTof = this.byte2float(this.BT_INDEX_DATA_REV + 13 * 4) | |
this.sensor.GL_X = this.byte2float(this.BT_INDEX_DATA_REV + 14 * 4) | |
this.sensor.GL_Y = this.byte2float(this.BT_INDEX_DATA_REV + 15 * 4) | |
this.sensor.timertick = this.byte2float(this.BT_INDEX_DATA_REV + 16 * 4) | |
this.sensor.M1 = parseInt(revdata[this.BT_INDEX_DATA_REV + 17 * 4 + 0]) | |
this.sensor.M2 = parseInt(revdata[this.BT_INDEX_DATA_REV + 17 * 4 + 1]) | |
this.sensor.M3 = parseInt(revdata[this.BT_INDEX_DATA_REV + 17 * 4 + 2]) | |
this.sensor.M4 = parseInt(revdata[this.BT_INDEX_DATA_REV + 17 * 4 + 3]) | |
this.sensor.state_velocity_x = this.byte2float(this.BT_INDEX_DATA_REV + 18 * 4) | |
this.sensor.state_velocity_y = this.byte2float(this.BT_INDEX_DATA_REV + 19 * 4) | |
this.sensor.state_velocity_z = this.byte2float(this.BT_INDEX_DATA_REV + 20 * 4) | |
this.sensor.Debug_0 = this.byte2float(this.BT_INDEX_DATA_REV + 21 * 4) | |
this.sensor.Debug_1 = this.byte2float(this.BT_INDEX_DATA_REV + 22 * 4) | |
this.sensor.Debug_2 = this.byte2float(this.BT_INDEX_DATA_REV + 23 * 4) | |
this.sensor.Debug_3 = this.byte2float(this.BT_INDEX_DATA_REV + 24 * 4) | |
this.sensor.Debug_4 = this.byte2float(this.BT_INDEX_DATA_REV + 25 * 4) | |
this.sensor.Debug_5 = this.byte2float(this.BT_INDEX_DATA_REV + 26 * 4) | |
this.sensor.FusedHeight = this.byte2float(this.BT_INDEX_DATA_REV + 27 * 4) | |
this.sensor.VER = parseInt(revdata[this.BT_INDEX_DATA_REV + 28 * 4 + 0]) | |
this.sensor.ErrFly = parseInt(revdata[this.BT_INDEX_DATA_REV + 28 * 4 + 1]) | |
let msg = this.Sensor2String(); | |
// console.log(msg); | |
} |
#787