-
Notifications
You must be signed in to change notification settings - Fork 328
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.61 PR #801
1.9.61 PR #801
Conversation
포트 자동 연결 추가 입력 값 수정
로보링크 주미 미니 자동연결 추가
[Develop hw] uart serial 통신 모델을 bluetooth ssp 모델로 변경 작업 완료.
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
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/avatarbot.js
Line 277 in be45d4d
{ |
Opening curly brace does not appear on the same line as controlling statement.
entry-hw/app/modules/avatarbot.js
Line 277 in be45d4d
{ |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/avatarbot.js
Line 278 in be45d4d
self.dataSet[self.dataSet_index+i] = data[i]; |
Operator '+' must be spaced.
entry-hw/app/modules/avatarbot.js
Line 278 in be45d4d
self.dataSet[self.dataSet_index+i] = data[i]; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/avatarbot.js
Line 279 in be45d4d
checksum += data[i]; |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/avatarbot.js
Line 280 in be45d4d
}else{ |
Expected space(s) before "else".
entry-hw/app/modules/avatarbot.js
Line 280 in be45d4d
}else{ |
Expected space(s) after "else".
entry-hw/app/modules/avatarbot.js
Line 280 in be45d4d
}else{ |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/avatarbot.js
Line 281 in be45d4d
// last buffer |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/avatarbot.js
Line 282 in be45d4d
getChecksum = data[i]; |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/avatarbot.js
Line 283 in be45d4d
} |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/avatarbot.js
Line 286 in be45d4d
checksum = (checksum)&0xff; |
Operator '&' must be spaced.
entry-hw/app/modules/avatarbot.js
Line 286 in be45d4d
checksum = (checksum)&0xff; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/avatarbot.js
Line 288 in be45d4d
/* |
This line has a length of 148. Maximum allowed is 120.
entry-hw/app/modules/avatarbot.js
Line 293 in be45d4d
console.log('data ',i, ': ', self.dataSet[i], self.dataSet[i+1], self.dataSet[i+2], self.dataSet[i+3], self.dataSet[i+4], self.dataSet[i+5], |
This line has a length of 161. Maximum allowed is 120.
entry-hw/app/modules/avatarbot.js
Line 298 in be45d4d
if(self.dataSet[0] === 0x99 && self.dataSet[1] === 0x01 && self.dataSet[2] === 0x01 && self.dataSet[3] === self.avatarBotDataSet && getChecksum == checksum) |
Expected space(s) after "if".
entry-hw/app/modules/avatarbot.js
Line 298 in be45d4d
if(self.dataSet[0] === 0x99 && self.dataSet[1] === 0x01 && self.dataSet[2] === 0x01 && self.dataSet[3] === self.avatarBotDataSet && getChecksum == checksum) |
Opening curly brace does not appear on the same line as controlling statement.
entry-hw/app/modules/avatarbot.js
Line 299 in be45d4d
{ |
Operator '-' must be spaced.
entry-hw/app/modules/avatarbot.js
Line 300 in be45d4d
self.dataSet_index = self.dataSet_index + (data.length-1); |
Expected space(s) before "else".
entry-hw/app/modules/avatarbot.js
Line 301 in be45d4d
}else{ |
Expected space(s) after "else".
entry-hw/app/modules/avatarbot.js
Line 301 in be45d4d
}else{ |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/avatarbot.js
Line 302 in be45d4d
self.dataSet_index = 0; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/avatarbot.js
Line 304 in be45d4d
} |
Expected space(s) after "if".
entry-hw/app/modules/avatarbot.js
Line 306 in be45d4d
if(self.dataSet_index == self.avatarBotDataSet){ |
Missing space before opening brace.
entry-hw/app/modules/avatarbot.js
Lines 306 to 315 in be45d4d
if(self.dataSet_index == self.avatarBotDataSet){ | |
self.originParsing(self.dataSet); | |
self.dataSet_index = 0; | |
self.dataSet[0] = 0; // clear | |
self.dataSet[1] = 0; // clear | |
self.dataSet[2] = 0; // clear | |
self.dataSet[3] = 0; // clear | |
// | |
// console.log('[jhkim] handleLocalData - dataSet_index[11] = ', self.dataSet[11]); | |
} |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/avatarbot.js
Line 307 in be45d4d
self.originParsing(self.dataSet); |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/avatarbot.js
Line 308 in be45d4d
self.dataSet_index = 0; |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/avatarbot.js
Line 309 in be45d4d
self.dataSet[0] = 0; // clear |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/avatarbot.js
Line 310 in be45d4d
self.dataSet[1] = 0; // clear |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/avatarbot.js
Line 311 in be45d4d
self.dataSet[2] = 0; // clear |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/avatarbot.js
Line 312 in be45d4d
self.dataSet[3] = 0; // clear |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/avatarbot.js
Line 313 in be45d4d
// |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/avatarbot.js
Line 314 in be45d4d
// console.log('[jhkim] handleLocalData - dataSet_index[11] = ', self.dataSet[11]); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/avatarbot.js
Line 315 in be45d4d
} |
Block must not be padded by blank lines.
entry-hw/app/modules/avatarbot.js
Line 318 in be45d4d
}; |
Operator '==' must be spaced.
entry-hw/app/modules/jcboard.js
Line 76 in be45d4d
handler.write('A0', (this.sensorData[6] & 0x01)==0x01? 1 : 0); |
Operator '?' must be spaced.
entry-hw/app/modules/jcboard.js
Line 76 in be45d4d
handler.write('A0', (this.sensorData[6] & 0x01)==0x01? 1 : 0); |
Operator '==' must be spaced.
entry-hw/app/modules/jcboard.js
Line 77 in be45d4d
handler.write('A1', (this.sensorData[6] & 0x02)==0x02? 1 : 0); |
Operator '?' must be spaced.
entry-hw/app/modules/jcboard.js
Line 77 in be45d4d
handler.write('A1', (this.sensorData[6] & 0x02)==0x02? 1 : 0); |
Operator '&' must be spaced.
entry-hw/app/modules/jdcode.js
Line 255 in be45d4d
sensorData[10] = (dongleData[3]&0x03)? 0 : 1; |
Operator '?' must be spaced.
entry-hw/app/modules/jdcode.js
Line 255 in be45d4d
sensorData[10] = (dongleData[3]&0x03)? 0 : 1; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 2 in be45d4d
this.cmdData = [0x26, 0xA8, 0x14, 0x81, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, |
Expected indentation of 8 spaces but found 5 tabs.
entry-hw/app/modules/robodog.js
Line 3 in be45d4d
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
Expected indentation of 8 spaces but found 5 tabs.
entry-hw/app/modules/robodog.js
Line 4 in be45d4d
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
Expected indentation of 8 spaces but found 5 tabs.
entry-hw/app/modules/robodog.js
Line 5 in be45d4d
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 6 in be45d4d
this.sensorData = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
Expected indentation of 8 spaces but found 5 tabs.
entry-hw/app/modules/robodog.js
Line 7 in be45d4d
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 8 in be45d4d
this.dongleData = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
Expected indentation of 8 spaces but found 5 tabs.
entry-hw/app/modules/robodog.js
Line 9 in be45d4d
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 10 in be45d4d
this.robodog_head = [0x26, 0xA8, 0x14, 0x8A]; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 11 in be45d4d
this.rk_cnt = 0; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 12 in be45d4d
this.pktCnt = -1; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 13 in be45d4d
this.pktLength = 6; |
This line has a length of 124. Maximum allowed is 120.
entry-hw/app/modules/robodog.js
Line 14 in be45d4d
this.ledPacket = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 14 in be45d4d
this.ledPacket = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 15 in be45d4d
this.txCnt = 0; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 22 in be45d4d
return null; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 26 in be45d4d
return true; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 30 in be45d4d
return true; |
Missing space before opening brace.
entry-hw/app/modules/robodog.js
Lines 35 to 43 in be45d4d
function checksum(cmd){ | |
let sum = 0; | |
cmd.forEach(function (value, idx) { | |
if(idx > 5) | |
sum += value; | |
}); | |
return sum&0xFF; | |
} |
Unexpected function expression.
entry-hw/app/modules/robodog.js
Lines 38 to 41 in be45d4d
cmd.forEach(function (value, idx) { | |
if(idx > 5) | |
sum += value; | |
}); |
Unexpected space before function parentheses.
entry-hw/app/modules/robodog.js
Line 38 in be45d4d
cmd.forEach(function (value, idx) { |
Expected { after 'if' condition.
entry-hw/app/modules/robodog.js
Line 39 in be45d4d
if(idx > 5) |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 39 in be45d4d
if(idx > 5) |
Operator '&' must be spaced.
entry-hw/app/modules/robodog.js
Line 42 in be45d4d
return sum&0xFF; |
Expected indentation of 0 spaces but found 1.
entry-hw/app/modules/robodog.js
Line 46 in be45d4d
/////////////// 엔트리에서 받은 데이터에 대한 처리 ///////////////////// |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 48 in be45d4d
let cmd = handler.read('CMD'); |
'cmd' is never reassigned. Use 'const' instead.
entry-hw/app/modules/robodog.js
Line 48 in be45d4d
let cmd = handler.read('CMD'); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 50 in be45d4d
if(typeof cmd !== 'object') |
Expected { after 'if' condition.
entry-hw/app/modules/robodog.js
Line 50 in be45d4d
if(typeof cmd !== 'object') |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 50 in be45d4d
if(typeof cmd !== 'object') |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 51 in be45d4d
return; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 53 in be45d4d
this.cmdData = cmd.slice(); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 54 in be45d4d
if(this.cmdData[14] > 0){ |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 54 in be45d4d
if(this.cmdData[14] > 0){ |
Missing space before opening brace.
entry-hw/app/modules/robodog.js
Lines 54 to 73 in be45d4d
if(this.cmdData[14] > 0){ | |
if(this.cmdData[14] == 2){ | |
this.ledPacket[0] = (this.cmdData[14]&0xC0) | 0x82; | |
this.ledPacket[1] = this.ledPacket[1] | 0x80; | |
for(let n=0; n<16; n++) | |
this.ledPacket[2+n] = this.cmdData[24+n]; | |
} | |
if(this.cmdData[14] == 3){ | |
this.ledPacket[0] = (this.cmdData[14]&0xC0) | 0x83; | |
this.ledPacket[1] = this.ledPacket[1] | 0x80; | |
for(let n=0; n<16; n++) | |
this.ledPacket[2+n] = this.cmdData[24+n]; | |
} | |
if(this.cmdData[14] == 4){ | |
this.ledPacket[1] = (this.cmdData[14]&0xC0) | 0x44; | |
this.ledPacket[0] = this.ledPacket[0] | 0x40; | |
for(let n=0; n<16; n++) | |
this.ledPacket[18+n] = this.cmdData[24+n]; | |
} | |
} |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 55 in be45d4d
if(this.cmdData[14] == 2){ |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 55 in be45d4d
if(this.cmdData[14] == 2){ |
Missing space before opening brace.
entry-hw/app/modules/robodog.js
Lines 55 to 60 in be45d4d
if(this.cmdData[14] == 2){ | |
this.ledPacket[0] = (this.cmdData[14]&0xC0) | 0x82; | |
this.ledPacket[1] = this.ledPacket[1] | 0x80; | |
for(let n=0; n<16; n++) | |
this.ledPacket[2+n] = this.cmdData[24+n]; | |
} |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 56 in be45d4d
this.ledPacket[0] = (this.cmdData[14]&0xC0) | 0x82; |
Operator '&' must be spaced.
entry-hw/app/modules/robodog.js
Line 56 in be45d4d
this.ledPacket[0] = (this.cmdData[14]&0xC0) | 0x82; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 57 in be45d4d
this.ledPacket[1] = this.ledPacket[1] | 0x80; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 58 in be45d4d
for(let n=0; n<16; n++) |
Expected { after 'for' condition.
entry-hw/app/modules/robodog.js
Line 58 in be45d4d
for(let n=0; n<16; n++) |
Expected space(s) after "for".
entry-hw/app/modules/robodog.js
Line 58 in be45d4d
for(let n=0; n<16; n++) |
Operator '=' must be spaced.
entry-hw/app/modules/robodog.js
Line 58 in be45d4d
for(let n=0; n<16; n++) |
Operator '<' must be spaced.
entry-hw/app/modules/robodog.js
Line 58 in be45d4d
for(let n=0; n<16; n++) |
Expected indentation of 16 spaces but found 4 tabs.
entry-hw/app/modules/robodog.js
Line 59 in be45d4d
this.ledPacket[2+n] = this.cmdData[24+n]; |
Operator '+' must be spaced.
entry-hw/app/modules/robodog.js
Line 59 in be45d4d
this.ledPacket[2+n] = this.cmdData[24+n]; |
Operator '+' must be spaced.
entry-hw/app/modules/robodog.js
Line 59 in be45d4d
this.ledPacket[2+n] = this.cmdData[24+n]; |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 60 in be45d4d
} |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 61 in be45d4d
if(this.cmdData[14] == 3){ |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 61 in be45d4d
if(this.cmdData[14] == 3){ |
Missing space before opening brace.
entry-hw/app/modules/robodog.js
Lines 61 to 66 in be45d4d
if(this.cmdData[14] == 3){ | |
this.ledPacket[0] = (this.cmdData[14]&0xC0) | 0x83; | |
this.ledPacket[1] = this.ledPacket[1] | 0x80; | |
for(let n=0; n<16; n++) | |
this.ledPacket[2+n] = this.cmdData[24+n]; | |
} |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 62 in be45d4d
this.ledPacket[0] = (this.cmdData[14]&0xC0) | 0x83; |
Operator '&' must be spaced.
entry-hw/app/modules/robodog.js
Line 62 in be45d4d
this.ledPacket[0] = (this.cmdData[14]&0xC0) | 0x83; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 63 in be45d4d
this.ledPacket[1] = this.ledPacket[1] | 0x80; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 64 in be45d4d
for(let n=0; n<16; n++) |
Expected { after 'for' condition.
entry-hw/app/modules/robodog.js
Line 64 in be45d4d
for(let n=0; n<16; n++) |
Expected space(s) after "for".
entry-hw/app/modules/robodog.js
Line 64 in be45d4d
for(let n=0; n<16; n++) |
Operator '=' must be spaced.
entry-hw/app/modules/robodog.js
Line 64 in be45d4d
for(let n=0; n<16; n++) |
Operator '<' must be spaced.
entry-hw/app/modules/robodog.js
Line 64 in be45d4d
for(let n=0; n<16; n++) |
Expected indentation of 16 spaces but found 4 tabs.
entry-hw/app/modules/robodog.js
Line 65 in be45d4d
this.ledPacket[2+n] = this.cmdData[24+n]; |
Operator '+' must be spaced.
entry-hw/app/modules/robodog.js
Line 65 in be45d4d
this.ledPacket[2+n] = this.cmdData[24+n]; |
Operator '+' must be spaced.
entry-hw/app/modules/robodog.js
Line 65 in be45d4d
this.ledPacket[2+n] = this.cmdData[24+n]; |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 66 in be45d4d
} |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 67 in be45d4d
if(this.cmdData[14] == 4){ |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 67 in be45d4d
if(this.cmdData[14] == 4){ |
Missing space before opening brace.
entry-hw/app/modules/robodog.js
Lines 67 to 72 in be45d4d
if(this.cmdData[14] == 4){ | |
this.ledPacket[1] = (this.cmdData[14]&0xC0) | 0x44; | |
this.ledPacket[0] = this.ledPacket[0] | 0x40; | |
for(let n=0; n<16; n++) | |
this.ledPacket[18+n] = this.cmdData[24+n]; | |
} |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 68 in be45d4d
this.ledPacket[1] = (this.cmdData[14]&0xC0) | 0x44; |
Operator '&' must be spaced.
entry-hw/app/modules/robodog.js
Line 68 in be45d4d
this.ledPacket[1] = (this.cmdData[14]&0xC0) | 0x44; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 69 in be45d4d
this.ledPacket[0] = this.ledPacket[0] | 0x40; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 70 in be45d4d
for(let n=0; n<16; n++) |
Expected { after 'for' condition.
entry-hw/app/modules/robodog.js
Line 70 in be45d4d
for(let n=0; n<16; n++) |
Expected space(s) after "for".
entry-hw/app/modules/robodog.js
Line 70 in be45d4d
for(let n=0; n<16; n++) |
Operator '=' must be spaced.
entry-hw/app/modules/robodog.js
Line 70 in be45d4d
for(let n=0; n<16; n++) |
Operator '<' must be spaced.
entry-hw/app/modules/robodog.js
Line 70 in be45d4d
for(let n=0; n<16; n++) |
Expected indentation of 16 spaces but found 4 tabs.
entry-hw/app/modules/robodog.js
Line 71 in be45d4d
this.ledPacket[18+n] = this.cmdData[24+n]; |
Operator '+' must be spaced.
entry-hw/app/modules/robodog.js
Line 71 in be45d4d
this.ledPacket[18+n] = this.cmdData[24+n]; |
Operator '+' must be spaced.
entry-hw/app/modules/robodog.js
Line 71 in be45d4d
this.ledPacket[18+n] = this.cmdData[24+n]; |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 72 in be45d4d
} |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 73 in be45d4d
} |
Closing curly brace does not appear on the same line as the subsequent block.
entry-hw/app/modules/robodog.js
Line 73 in be45d4d
} |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 74 in be45d4d
else{ |
Expected space(s) after "else".
entry-hw/app/modules/robodog.js
Line 74 in be45d4d
else{ |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 75 in be45d4d
this.ledPacket[0] = 0; |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 76 in be45d4d
this.ledPacket[1] = 0; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 77 in be45d4d
} |
Expected indentation of 0 spaces but found 1.
entry-hw/app/modules/robodog.js
Line 81 in be45d4d
//////////////// 하드웨어로 보낼 데이터 로직 ///////////// |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 83 in be45d4d
if(((this.ledPacket[0]&0xC0) == 0xC0) || ((this.ledPacket[1]&0xC0) == 0xC0)){ |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 83 in be45d4d
if(((this.ledPacket[0]&0xC0) == 0xC0) || ((this.ledPacket[1]&0xC0) == 0xC0)){ |
Operator '&' must be spaced.
entry-hw/app/modules/robodog.js
Line 83 in be45d4d
if(((this.ledPacket[0]&0xC0) == 0xC0) || ((this.ledPacket[1]&0xC0) == 0xC0)){ |
Operator '&' must be spaced.
entry-hw/app/modules/robodog.js
Line 83 in be45d4d
if(((this.ledPacket[0]&0xC0) == 0xC0) || ((this.ledPacket[1]&0xC0) == 0xC0)){ |
Missing space before opening brace.
entry-hw/app/modules/robodog.js
Lines 83 to 96 in be45d4d
if(((this.ledPacket[0]&0xC0) == 0xC0) || ((this.ledPacket[1]&0xC0) == 0xC0)){ | |
if((this.txCnt%2) == 0){ | |
this.cmdData[14] = this.ledPacket[0]; | |
for(let n=0; n<16; n++) | |
this.cmdData[24+n] = this.ledPacket[2+n]; | |
} | |
else{ | |
this.cmdData[14] = this.ledPacket[1]; | |
for(let n=0; n<16; n++) | |
this.cmdData[24+n] = this.ledPacket[18+n]; | |
} | |
this.cmdData[5] = checksum(this.cmdData); | |
this.txCnt += 1; | |
} |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 84 in be45d4d
if((this.txCnt%2) == 0){ |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 84 in be45d4d
if((this.txCnt%2) == 0){ |
Operator '%' must be spaced.
entry-hw/app/modules/robodog.js
Line 84 in be45d4d
if((this.txCnt%2) == 0){ |
Missing space before opening brace.
entry-hw/app/modules/robodog.js
Lines 84 to 88 in be45d4d
if((this.txCnt%2) == 0){ | |
this.cmdData[14] = this.ledPacket[0]; | |
for(let n=0; n<16; n++) | |
this.cmdData[24+n] = this.ledPacket[2+n]; | |
} |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 85 in be45d4d
this.cmdData[14] = this.ledPacket[0]; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 86 in be45d4d
for(let n=0; n<16; n++) |
Expected { after 'for' condition.
entry-hw/app/modules/robodog.js
Line 86 in be45d4d
for(let n=0; n<16; n++) |
Expected space(s) after "for".
entry-hw/app/modules/robodog.js
Line 86 in be45d4d
for(let n=0; n<16; n++) |
Operator '=' must be spaced.
entry-hw/app/modules/robodog.js
Line 86 in be45d4d
for(let n=0; n<16; n++) |
Operator '<' must be spaced.
entry-hw/app/modules/robodog.js
Line 86 in be45d4d
for(let n=0; n<16; n++) |
Expected indentation of 16 spaces but found 4 tabs.
entry-hw/app/modules/robodog.js
Line 87 in be45d4d
this.cmdData[24+n] = this.ledPacket[2+n]; |
Operator '+' must be spaced.
entry-hw/app/modules/robodog.js
Line 87 in be45d4d
this.cmdData[24+n] = this.ledPacket[2+n]; |
Operator '+' must be spaced.
entry-hw/app/modules/robodog.js
Line 87 in be45d4d
this.cmdData[24+n] = this.ledPacket[2+n]; |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 88 in be45d4d
} |
Closing curly brace does not appear on the same line as the subsequent block.
entry-hw/app/modules/robodog.js
Line 88 in be45d4d
} |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 89 in be45d4d
else{ |
Expected space(s) after "else".
entry-hw/app/modules/robodog.js
Line 89 in be45d4d
else{ |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 90 in be45d4d
this.cmdData[14] = this.ledPacket[1]; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 91 in be45d4d
for(let n=0; n<16; n++) |
Expected { after 'for' condition.
entry-hw/app/modules/robodog.js
Line 91 in be45d4d
for(let n=0; n<16; n++) |
Expected space(s) after "for".
entry-hw/app/modules/robodog.js
Line 91 in be45d4d
for(let n=0; n<16; n++) |
Operator '=' must be spaced.
entry-hw/app/modules/robodog.js
Line 91 in be45d4d
for(let n=0; n<16; n++) |
Operator '<' must be spaced.
entry-hw/app/modules/robodog.js
Line 91 in be45d4d
for(let n=0; n<16; n++) |
Expected indentation of 16 spaces but found 4 tabs.
entry-hw/app/modules/robodog.js
Line 92 in be45d4d
this.cmdData[24+n] = this.ledPacket[18+n]; |
Operator '+' must be spaced.
entry-hw/app/modules/robodog.js
Line 92 in be45d4d
this.cmdData[24+n] = this.ledPacket[18+n]; |
Operator '+' must be spaced.
entry-hw/app/modules/robodog.js
Line 92 in be45d4d
this.cmdData[24+n] = this.ledPacket[18+n]; |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 93 in be45d4d
} |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 94 in be45d4d
this.cmdData[5] = checksum(this.cmdData); |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 95 in be45d4d
this.txCnt += 1; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 96 in be45d4d
} |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 97 in be45d4d
return this.cmdData; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 102 in be45d4d
let sensorData = this.sensorData; |
'sensorData' is never reassigned. Use 'const' instead.
entry-hw/app/modules/robodog.js
Line 102 in be45d4d
let sensorData = this.sensorData; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 103 in be45d4d
let dongleData = this.dongleData; |
'dongleData' is never reassigned. Use 'const' instead.
entry-hw/app/modules/robodog.js
Line 103 in be45d4d
let dongleData = this.dongleData; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 104 in be45d4d
let pktLength = this.pktLength; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 106 in be45d4d
let robodog_head = this.robodog_head; |
Identifier 'robodog_head' is not in camel case.
entry-hw/app/modules/robodog.js
Line 106 in be45d4d
let robodog_head = this.robodog_head; |
'robodog_head' is never reassigned. Use 'const' instead.
entry-hw/app/modules/robodog.js
Line 106 in be45d4d
let robodog_head = this.robodog_head; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 107 in be45d4d
data.forEach(function (value) { |
Unexpected space before function parentheses.
entry-hw/app/modules/robodog.js
Line 107 in be45d4d
data.forEach(function (value) { |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 108 in be45d4d
this.rk_cnt = (value==robodog_head[this.rk_cnt])? this.rk_cnt+1 : 0; |
Operator '==' must be spaced.
entry-hw/app/modules/robodog.js
Line 108 in be45d4d
this.rk_cnt = (value==robodog_head[this.rk_cnt])? this.rk_cnt+1 : 0; |
Operator '?' must be spaced.
entry-hw/app/modules/robodog.js
Line 108 in be45d4d
this.rk_cnt = (value==robodog_head[this.rk_cnt])? this.rk_cnt+1 : 0; |
Operator '+' must be spaced.
entry-hw/app/modules/robodog.js
Line 108 in be45d4d
this.rk_cnt = (value==robodog_head[this.rk_cnt])? this.rk_cnt+1 : 0; |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 109 in be45d4d
if(this.rk_cnt == 4){ |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 109 in be45d4d
if(this.rk_cnt == 4){ |
Missing space before opening brace.
entry-hw/app/modules/robodog.js
Lines 109 to 112 in be45d4d
if(this.rk_cnt == 4){ | |
this.rk_cnt = 0; | |
this.pktCnt = 0; | |
} |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 110 in be45d4d
this.rk_cnt = 0; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 111 in be45d4d
this.pktCnt = 0; |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 112 in be45d4d
} |
Closing curly brace does not appear on the same line as the subsequent block.
entry-hw/app/modules/robodog.js
Line 112 in be45d4d
} |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 113 in be45d4d
else if(this.pktCnt >= 0){ |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 113 in be45d4d
else if(this.pktCnt >= 0){ |
Missing space before opening brace.
entry-hw/app/modules/robodog.js
Lines 113 to 117 in be45d4d
else if(this.pktCnt >= 0){ | |
if(this.pktCnt == 0) | |
pktLength = ((value>0) && (value<19))? value-4 : 16; | |
dongleData[4+this.pktCnt++] = value; | |
} |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 114 in be45d4d
if(this.pktCnt == 0) |
Expected { after 'if' condition.
entry-hw/app/modules/robodog.js
Line 114 in be45d4d
if(this.pktCnt == 0) |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 114 in be45d4d
if(this.pktCnt == 0) |
Expected indentation of 16 spaces but found 5 tabs.
entry-hw/app/modules/robodog.js
Line 115 in be45d4d
pktLength = ((value>0) && (value<19))? value-4 : 16; |
Operator '>' must be spaced.
entry-hw/app/modules/robodog.js
Line 115 in be45d4d
pktLength = ((value>0) && (value<19))? value-4 : 16; |
Operator '<' must be spaced.
entry-hw/app/modules/robodog.js
Line 115 in be45d4d
pktLength = ((value>0) && (value<19))? value-4 : 16; |
Operator '?' must be spaced.
entry-hw/app/modules/robodog.js
Line 115 in be45d4d
pktLength = ((value>0) && (value<19))? value-4 : 16; |
Operator '-' must be spaced.
entry-hw/app/modules/robodog.js
Line 115 in be45d4d
pktLength = ((value>0) && (value<19))? value-4 : 16; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 116 in be45d4d
dongleData[4+this.pktCnt++] = value; |
Operator '+' must be spaced.
entry-hw/app/modules/robodog.js
Line 116 in be45d4d
dongleData[4+this.pktCnt++] = value; |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 117 in be45d4d
} |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 119 in be45d4d
if(this.pktCnt == pktLength){ |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 119 in be45d4d
if(this.pktCnt == pktLength){ |
Missing space before opening brace.
entry-hw/app/modules/robodog.js
Lines 119 to 131 in be45d4d
if(this.pktCnt == pktLength){ | |
this.pktCnt = -1; | |
var sum = 0; | |
dongleData.forEach(function (value, idx) { | |
if(idx > 5) | |
sum += value; | |
}); | |
if(dongleData[5] == (sum&0xFF)){ | |
dongleData.forEach(function (value, idx) { | |
sensorData[idx] = value; | |
}); | |
} | |
} |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 120 in be45d4d
this.pktCnt = -1; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 121 in be45d4d
var sum = 0; |
Unexpected var, use let or const instead.
entry-hw/app/modules/robodog.js
Line 121 in be45d4d
var sum = 0; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 122 in be45d4d
dongleData.forEach(function (value, idx) { |
Unexpected function expression.
entry-hw/app/modules/robodog.js
Lines 122 to 125 in be45d4d
dongleData.forEach(function (value, idx) { | |
if(idx > 5) | |
sum += value; | |
}); |
Unexpected space before function parentheses.
entry-hw/app/modules/robodog.js
Line 122 in be45d4d
dongleData.forEach(function (value, idx) { |
Expected indentation of 16 spaces but found 4 tabs.
entry-hw/app/modules/robodog.js
Line 123 in be45d4d
if(idx > 5) |
Expected { after 'if' condition.
entry-hw/app/modules/robodog.js
Line 123 in be45d4d
if(idx > 5) |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 123 in be45d4d
if(idx > 5) |
Expected indentation of 20 spaces but found 5 tabs.
entry-hw/app/modules/robodog.js
Line 124 in be45d4d
sum += value; |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 125 in be45d4d
}); |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 126 in be45d4d
if(dongleData[5] == (sum&0xFF)){ |
Expected space(s) after "if".
entry-hw/app/modules/robodog.js
Line 126 in be45d4d
if(dongleData[5] == (sum&0xFF)){ |
Operator '&' must be spaced.
entry-hw/app/modules/robodog.js
Line 126 in be45d4d
if(dongleData[5] == (sum&0xFF)){ |
Missing space before opening brace.
entry-hw/app/modules/robodog.js
Lines 126 to 130 in be45d4d
if(dongleData[5] == (sum&0xFF)){ | |
dongleData.forEach(function (value, idx) { | |
sensorData[idx] = value; | |
}); | |
} |
Expected indentation of 16 spaces but found 4 tabs.
entry-hw/app/modules/robodog.js
Line 127 in be45d4d
dongleData.forEach(function (value, idx) { |
Unexpected function expression.
entry-hw/app/modules/robodog.js
Lines 127 to 129 in be45d4d
dongleData.forEach(function (value, idx) { | |
sensorData[idx] = value; | |
}); |
Unexpected space before function parentheses.
entry-hw/app/modules/robodog.js
Line 127 in be45d4d
dongleData.forEach(function (value, idx) { |
Expected indentation of 20 spaces but found 5 tabs.
entry-hw/app/modules/robodog.js
Line 128 in be45d4d
sensorData[idx] = value; |
Expected indentation of 16 spaces but found 4 tabs.
entry-hw/app/modules/robodog.js
Line 129 in be45d4d
}); |
Expected indentation of 12 spaces but found 3 tabs.
entry-hw/app/modules/robodog.js
Line 130 in be45d4d
} |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 131 in be45d4d
} |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 132 in be45d4d
}); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 133 in be45d4d
this.pktLength = pktLength; |
Opening curly brace does not appear on the same line as controlling statement.
entry-hw/app/modules/robodog.js
Line 137 in be45d4d
{ |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 138 in be45d4d
return data>127? data-256 : data; |
Operator '>' must be spaced.
entry-hw/app/modules/robodog.js
Line 138 in be45d4d
return data>127? data-256 : data; |
Operator '?' must be spaced.
entry-hw/app/modules/robodog.js
Line 138 in be45d4d
return data>127? data-256 : data; |
Operator '-' must be spaced.
entry-hw/app/modules/robodog.js
Line 138 in be45d4d
return data>127? data-256 : data; |
Opening curly brace does not appear on the same line as controlling statement.
entry-hw/app/modules/robodog.js
Line 141 in be45d4d
{ |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 142 in be45d4d
return data>32767? data-65536 : data; |
Operator '>' must be spaced.
entry-hw/app/modules/robodog.js
Line 142 in be45d4d
return data>32767? data-65536 : data; |
Operator '?' must be spaced.
entry-hw/app/modules/robodog.js
Line 142 in be45d4d
return data>32767? data-65536 : data; |
Operator '-' must be spaced.
entry-hw/app/modules/robodog.js
Line 142 in be45d4d
return data>32767? data-65536 : data; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 147 in be45d4d
handler.write("SENSORDATA", this.sensorData); |
Strings must use singlequote.
entry-hw/app/modules/robodog.js
Line 147 in be45d4d
handler.write("SENSORDATA", this.sensorData); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 148 in be45d4d
handler.write('BATTERY', this.sensorData[6]); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 149 in be45d4d
handler.write('TOF', this.sensorData[7]); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 150 in be45d4d
handler.write('ROLL', unsingToSign8(this.sensorData[8])); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 151 in be45d4d
handler.write('PITCH', unsingToSign8(this.sensorData[9])); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 152 in be45d4d
handler.write('YAW', unsingToSign16(this.sensorData[10] + this.sensorData[11]*256)); |
Operator '*' must be spaced.
entry-hw/app/modules/robodog.js
Line 152 in be45d4d
handler.write('YAW', unsingToSign16(this.sensorData[10] + this.sensorData[11]*256)); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 153 in be45d4d
handler.write('RB0', this.sensorData[12]>127? this.sensorData[12]-256 : this.sensorData[12]); |
Operator '>' must be spaced.
entry-hw/app/modules/robodog.js
Line 153 in be45d4d
handler.write('RB0', this.sensorData[12]>127? this.sensorData[12]-256 : this.sensorData[12]); |
Operator '?' must be spaced.
entry-hw/app/modules/robodog.js
Line 153 in be45d4d
handler.write('RB0', this.sensorData[12]>127? this.sensorData[12]-256 : this.sensorData[12]); |
Operator '-' must be spaced.
entry-hw/app/modules/robodog.js
Line 153 in be45d4d
handler.write('RB0', this.sensorData[12]>127? this.sensorData[12]-256 : this.sensorData[12]); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 154 in be45d4d
handler.write('RB1', this.sensorData[13]>127? this.sensorData[13]-256 : this.sensorData[13]); |
Operator '>' must be spaced.
entry-hw/app/modules/robodog.js
Line 154 in be45d4d
handler.write('RB1', this.sensorData[13]>127? this.sensorData[13]-256 : this.sensorData[13]); |
Operator '?' must be spaced.
entry-hw/app/modules/robodog.js
Line 154 in be45d4d
handler.write('RB1', this.sensorData[13]>127? this.sensorData[13]-256 : this.sensorData[13]); |
Operator '-' must be spaced.
entry-hw/app/modules/robodog.js
Line 154 in be45d4d
handler.write('RB1', this.sensorData[13]>127? this.sensorData[13]-256 : this.sensorData[13]); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 155 in be45d4d
handler.write('RB2', this.sensorData[14]>127? this.sensorData[14]-256 : this.sensorData[14]); |
Operator '>' must be spaced.
entry-hw/app/modules/robodog.js
Line 155 in be45d4d
handler.write('RB2', this.sensorData[14]>127? this.sensorData[14]-256 : this.sensorData[14]); |
Operator '?' must be spaced.
entry-hw/app/modules/robodog.js
Line 155 in be45d4d
handler.write('RB2', this.sensorData[14]>127? this.sensorData[14]-256 : this.sensorData[14]); |
Operator '-' must be spaced.
entry-hw/app/modules/robodog.js
Line 155 in be45d4d
handler.write('RB2', this.sensorData[14]>127? this.sensorData[14]-256 : this.sensorData[14]); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 156 in be45d4d
handler.write('RB3', this.sensorData[15]>127? this.sensorData[15]-256 : this.sensorData[15]); |
Operator '>' must be spaced.
entry-hw/app/modules/robodog.js
Line 156 in be45d4d
handler.write('RB3', this.sensorData[15]>127? this.sensorData[15]-256 : this.sensorData[15]); |
Operator '?' must be spaced.
entry-hw/app/modules/robodog.js
Line 156 in be45d4d
handler.write('RB3', this.sensorData[15]>127? this.sensorData[15]-256 : this.sensorData[15]); |
Operator '-' must be spaced.
entry-hw/app/modules/robodog.js
Line 156 in be45d4d
handler.write('RB3', this.sensorData[15]>127? this.sensorData[15]-256 : this.sensorData[15]); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 157 in be45d4d
handler.write('BUTTON', this.sensorData[16]); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 158 in be45d4d
handler.write('RB_WATCHDOG', this.sensorData[17]); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 159 in be45d4d
handler.write('RB4', this.sensorData[18]>127? this.sensorData[18]-256 : this.sensorData[18]); |
Operator '>' must be spaced.
entry-hw/app/modules/robodog.js
Line 159 in be45d4d
handler.write('RB4', this.sensorData[18]>127? this.sensorData[18]-256 : this.sensorData[18]); |
Operator '?' must be spaced.
entry-hw/app/modules/robodog.js
Line 159 in be45d4d
handler.write('RB4', this.sensorData[18]>127? this.sensorData[18]-256 : this.sensorData[18]); |
Operator '-' must be spaced.
entry-hw/app/modules/robodog.js
Line 159 in be45d4d
handler.write('RB4', this.sensorData[18]>127? this.sensorData[18]-256 : this.sensorData[18]); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 160 in be45d4d
handler.write('RB5', this.sensorData[19]>127? this.sensorData[19]-256 : this.sensorData[19]); |
Operator '>' must be spaced.
entry-hw/app/modules/robodog.js
Line 160 in be45d4d
handler.write('RB5', this.sensorData[19]>127? this.sensorData[19]-256 : this.sensorData[19]); |
Operator '?' must be spaced.
entry-hw/app/modules/robodog.js
Line 160 in be45d4d
handler.write('RB5', this.sensorData[19]>127? this.sensorData[19]-256 : this.sensorData[19]); |
Operator '-' must be spaced.
entry-hw/app/modules/robodog.js
Line 160 in be45d4d
handler.write('RB5', this.sensorData[19]>127? this.sensorData[19]-256 : this.sensorData[19]); |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 164 in be45d4d
this.cmdData = [0x26, 0xA8, 0x14, 0x81, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 165 in be45d4d
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 166 in be45d4d
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 167 in be45d4d
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 168 in be45d4d
0x64, 0x64, 0x64, 0x64, 0x64, 0x64, 0x64, 0x64]; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 169 in be45d4d
this.sensorData = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
Expected indentation of 8 spaces but found 2 tabs.
entry-hw/app/modules/robodog.js
Line 170 in be45d4d
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]; |
This line has a length of 124. Maximum allowed is 120.
entry-hw/app/modules/robodog.js
Line 171 in be45d4d
this.ledPacket = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 171 in be45d4d
this.ledPacket = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; |
Expected indentation of 4 spaces but found 1 tab.
entry-hw/app/modules/robodog.js
Line 172 in be45d4d
console.log("reset"); |
Strings must use singlequote.
entry-hw/app/modules/robodog.js
Line 172 in be45d4d
console.log("reset"); |
Operator '*' must be spaced.
entry-hw/app/modules/robolink_ZumiMini.js
Line 250 in be45d4d
this.inputData.irSensor.FL = data[this.IR]*4; |
Operator '*' must be spaced.
entry-hw/app/modules/robolink_ZumiMini.js
Line 251 in be45d4d
this.inputData.irSensor.FR = data[this.IR + 1]*4; |
Operator '*' must be spaced.
entry-hw/app/modules/robolink_ZumiMini.js
Line 252 in be45d4d
this.inputData.irSensor.BL = data[this.IR + 2]*4; |
Operator '*' must be spaced.
entry-hw/app/modules/robolink_ZumiMini.js
Line 253 in be45d4d
this.inputData.irSensor.BM = data[this.IR + 3]*4; |
Operator '*' must be spaced.
entry-hw/app/modules/robolink_ZumiMini.js
Line 254 in be45d4d
this.inputData.irSensor.BR = data[this.IR + 4]*4; |
@@ -58,12 +58,15 @@ function Module() { | |||
Osci: 27000000, | |||
Freq: 50 | |||
} |
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.
this.Board_Servo = { | ||
Pulse_Min: 150, | ||
Pulse_Max: 600, | ||
us_Min: 400, | ||
us_Max: 2100 | ||
us_Max: 2100, |
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.
this.Board_Servo = { | ||
Pulse_Min: 150, | ||
Pulse_Max: 600, | ||
us_Min: 400, | ||
us_Max: 2100 | ||
us_Max: 2100, | ||
angle: 90 |
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.
this.Board_Servo = { | ||
Pulse_Min: 150, | ||
Pulse_Max: 600, | ||
us_Min: 400, | ||
us_Max: 2100 | ||
us_Max: 2100, | ||
angle: 90 |
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.
angle: 90 | |
angle: 90, |
this.Board_Servo = { | ||
Pulse_Min: 150, | ||
Pulse_Max: 600, | ||
us_Min: 400, | ||
us_Max: 2100 | ||
us_Max: 2100, | ||
angle: 90 | ||
} |
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.
var self = this; | ||
// data.length => 211 | ||
var checksum = 0; | ||
var getChecksum = 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.
// data.length => 211 | ||
var checksum = 0; | ||
var getChecksum = 0; | ||
for (var i = 0; i < data.length; 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.
// data.length => 211 | ||
var checksum = 0; | ||
var getChecksum = 0; | ||
for (var i = 0; i < data.length; 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.
var checksum = 0; | ||
var getChecksum = 0; | ||
for (var i = 0; i < data.length; i++) { | ||
if(self.dataSet.length > 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.
var checksum = 0; | ||
var getChecksum = 0; | ||
for (var i = 0; i < data.length; i++) { | ||
if(self.dataSet.length > 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 "if".
if(self.dataSet.length > i) | |
if (self.dataSet.length > 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.
entry-hw/app/modules/jdcode.js
Lines 227 to 264 in be45d4d
else if(deviceType!=1){ | |
var jdcode_head = this.jdcode_head; | |
data.forEach(function (value, idx) { | |
this.rk_cnt = (value==jdcode_head[this.rk_cnt])? this.rk_cnt+1 : 0; | |
if(this.rk_cnt == 4){ | |
deviceType = 2; | |
this.rk_cnt = 0; | |
this.pktCnt = 0; | |
} | |
else if(this.pktCnt >= 0){ | |
if(this.pktCnt == 0) | |
pktLength = ((value>0) && (value<19))? value-4 : 14; | |
dongleData[this.pktCnt++] = value; | |
} | |
if(this.pktCnt == pktLength){ | |
this.pktCnt = -1; | |
var sum = 0; | |
dongleData.forEach(function (value, idx) { | |
if(idx > 1) | |
sum += value; | |
}); | |
if(dongleData[1] == (sum&0xFF)){ | |
deviceType = 2; | |
sensorData[6] = 1; | |
sensorData[15] = dongleData[5]; | |
sensorData[7] = dongleData[9]; | |
sensorData[8] = dongleData[7]; | |
sensorData[9] = dongleData[8]; | |
sensorData[10] = (dongleData[3]&0x03)? 0 : 1; | |
sensorData[16] = dongleData[10]; | |
sensorData[17] = dongleData[11]; | |
sensorData[18] = dongleData[12]; | |
sensorData[19] = dongleData[13]; | |
} | |
} | |
}); | |
} |
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/jdcode.js
Lines 241 to 261 in be45d4d
if(this.pktCnt == pktLength){ | |
this.pktCnt = -1; | |
var sum = 0; | |
dongleData.forEach(function (value, idx) { | |
if(idx > 1) | |
sum += value; | |
}); | |
if(dongleData[1] == (sum&0xFF)){ | |
deviceType = 2; | |
sensorData[6] = 1; | |
sensorData[15] = dongleData[5]; | |
sensorData[7] = dongleData[9]; | |
sensorData[8] = dongleData[7]; | |
sensorData[9] = dongleData[8]; | |
sensorData[10] = (dongleData[3]&0x03)? 0 : 1; | |
sensorData[16] = dongleData[10]; | |
sensorData[17] = dongleData[11]; | |
sensorData[18] = dongleData[12]; | |
sensorData[19] = dongleData[13]; | |
} | |
} |
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/jdcode.js
Lines 248 to 260 in be45d4d
if(dongleData[1] == (sum&0xFF)){ | |
deviceType = 2; | |
sensorData[6] = 1; | |
sensorData[15] = dongleData[5]; | |
sensorData[7] = dongleData[9]; | |
sensorData[8] = dongleData[7]; | |
sensorData[9] = dongleData[8]; | |
sensorData[10] = (dongleData[3]&0x03)? 0 : 1; | |
sensorData[16] = dongleData[10]; | |
sensorData[17] = dongleData[11]; | |
sensorData[18] = dongleData[12]; | |
sensorData[19] = dongleData[13]; | |
} |
#797