Skip to content
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

Merged
merged 12 commits into from
Dec 20, 2024
Merged

1.9.61 PR #801

merged 12 commits into from
Dec 20, 2024

Conversation

Tnks2U
Copy link
Contributor

@Tnks2U Tnks2U commented Dec 20, 2024

@Tnks2U Tnks2U requested review from kimorkim and prisml December 20, 2024 05:14
@Tnks2U Tnks2U self-assigned this Dec 20, 2024
@Tnks2U Tnks2U merged commit 48f368b into master Dec 20, 2024
2 checks passed
Copy link

@github-actions github-actions bot left a 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

⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <brace-style> reported by reviewdog 🐶
Opening curly brace does not appear on the same line as controlling statement.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

self.dataSet[self.dataSet_index+i] = data[i];


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

self.dataSet[self.dataSet_index+i] = data[i];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

checksum += data[i];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) before "else".


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "else".


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

// last buffer


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

getChecksum = data[i];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

checksum = (checksum)&0xff;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '&' must be spaced.

checksum = (checksum)&0xff;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.


⚠️ [eslint] <max-len> reported by reviewdog 🐶
This line has a length of 148. Maximum allowed is 120.

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],


⚠️ [eslint] <max-len> reported by reviewdog 🐶
This line has a length of 161. Maximum allowed is 120.

if(self.dataSet[0] === 0x99 && self.dataSet[1] === 0x01 && self.dataSet[2] === 0x01 && self.dataSet[3] === self.avatarBotDataSet && getChecksum == checksum)


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(self.dataSet[0] === 0x99 && self.dataSet[1] === 0x01 && self.dataSet[2] === 0x01 && self.dataSet[3] === self.avatarBotDataSet && getChecksum == checksum)


⚠️ [eslint] <brace-style> reported by reviewdog 🐶
Opening curly brace does not appear on the same line as controlling statement.


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '-' must be spaced.

self.dataSet_index = self.dataSet_index + (data.length-1);


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) before "else".


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "else".


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

self.dataSet_index = 0;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(self.dataSet_index == self.avatarBotDataSet){


⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

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]);
}


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

self.originParsing(self.dataSet);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

self.dataSet_index = 0;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

self.dataSet[0] = 0; // clear


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

self.dataSet[1] = 0; // clear


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

self.dataSet[2] = 0; // clear


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

self.dataSet[3] = 0; // clear


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

// console.log('[jhkim] handleLocalData - dataSet_index[11] = ', self.dataSet[11]);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.


⚠️ [eslint] <padded-blocks> reported by reviewdog 🐶
Block must not be padded by blank lines.


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '==' must be spaced.

handler.write('A0', (this.sensorData[6] & 0x01)==0x01? 1 : 0);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

handler.write('A0', (this.sensorData[6] & 0x01)==0x01? 1 : 0);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '==' must be spaced.

handler.write('A1', (this.sensorData[6] & 0x02)==0x02? 1 : 0);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

handler.write('A1', (this.sensorData[6] & 0x02)==0x02? 1 : 0);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '&' must be spaced.

sensorData[10] = (dongleData[3]&0x03)? 0 : 1;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

sensorData[10] = (dongleData[3]&0x03)? 0 : 1;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

this.cmdData = [0x26, 0xA8, 0x14, 0x81, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00,


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 5 tabs.

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 5 tabs.

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 5 tabs.

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

this.sensorData = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 5 tabs.

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

this.dongleData = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 5 tabs.

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

this.robodog_head = [0x26, 0xA8, 0x14, 0x8A];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

this.rk_cnt = 0;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

this.pktCnt = -1;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

this.pktLength = 6;


⚠️ [eslint] <max-len> reported by reviewdog 🐶
This line has a length of 124. Maximum allowed is 120.

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];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

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];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

this.txCnt = 0;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

return null;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

return true;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

return true;


⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

function checksum(cmd){
let sum = 0;
cmd.forEach(function (value, idx) {
if(idx > 5)
sum += value;
});
return sum&0xFF;
}


⚠️ [eslint] <prefer-arrow-callback> reported by reviewdog 🐶
Unexpected function expression.

cmd.forEach(function (value, idx) {
if(idx > 5)
sum += value;
});


⚠️ [eslint] <space-before-function-paren> reported by reviewdog 🐶
Unexpected space before function parentheses.

cmd.forEach(function (value, idx) {


⚠️ [eslint] <curly> reported by reviewdog 🐶
Expected { after 'if' condition.

if(idx > 5)


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(idx > 5)


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '&' must be spaced.

return sum&0xFF;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 0 spaces but found 1.

/////////////// 엔트리에서 받은 데이터에 대한 처리 /////////////////////


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

let cmd = handler.read('CMD');


⚠️ [eslint] <prefer-const> reported by reviewdog 🐶
'cmd' is never reassigned. Use 'const' instead.

let cmd = handler.read('CMD');


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

if(typeof cmd !== 'object')


⚠️ [eslint] <curly> reported by reviewdog 🐶
Expected { after 'if' condition.

if(typeof cmd !== 'object')


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(typeof cmd !== 'object')


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

this.cmdData = cmd.slice();


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

if(this.cmdData[14] > 0){


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(this.cmdData[14] > 0){


⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

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];
}
}


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

if(this.cmdData[14] == 2){


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(this.cmdData[14] == 2){


⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

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];
}


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

this.ledPacket[0] = (this.cmdData[14]&0xC0) | 0x82;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '&' must be spaced.

this.ledPacket[0] = (this.cmdData[14]&0xC0) | 0x82;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

this.ledPacket[1] = this.ledPacket[1] | 0x80;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

for(let n=0; n<16; n++)


⚠️ [eslint] <curly> reported by reviewdog 🐶
Expected { after 'for' condition.

for(let n=0; n<16; n++)


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "for".

for(let n=0; n<16; n++)


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '=' must be spaced.

for(let n=0; n<16; n++)


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '<' must be spaced.

for(let n=0; n<16; n++)


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 16 spaces but found 4 tabs.

this.ledPacket[2+n] = this.cmdData[24+n];


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

this.ledPacket[2+n] = this.cmdData[24+n];


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

this.ledPacket[2+n] = this.cmdData[24+n];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

if(this.cmdData[14] == 3){


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(this.cmdData[14] == 3){


⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

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];
}


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

this.ledPacket[0] = (this.cmdData[14]&0xC0) | 0x83;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '&' must be spaced.

this.ledPacket[0] = (this.cmdData[14]&0xC0) | 0x83;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

this.ledPacket[1] = this.ledPacket[1] | 0x80;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

for(let n=0; n<16; n++)


⚠️ [eslint] <curly> reported by reviewdog 🐶
Expected { after 'for' condition.

for(let n=0; n<16; n++)


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "for".

for(let n=0; n<16; n++)


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '=' must be spaced.

for(let n=0; n<16; n++)


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '<' must be spaced.

for(let n=0; n<16; n++)


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 16 spaces but found 4 tabs.

this.ledPacket[2+n] = this.cmdData[24+n];


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

this.ledPacket[2+n] = this.cmdData[24+n];


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

this.ledPacket[2+n] = this.cmdData[24+n];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

if(this.cmdData[14] == 4){


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(this.cmdData[14] == 4){


⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

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];
}


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

this.ledPacket[1] = (this.cmdData[14]&0xC0) | 0x44;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '&' must be spaced.

this.ledPacket[1] = (this.cmdData[14]&0xC0) | 0x44;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

this.ledPacket[0] = this.ledPacket[0] | 0x40;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

for(let n=0; n<16; n++)


⚠️ [eslint] <curly> reported by reviewdog 🐶
Expected { after 'for' condition.

for(let n=0; n<16; n++)


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "for".

for(let n=0; n<16; n++)


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '=' must be spaced.

for(let n=0; n<16; n++)


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '<' must be spaced.

for(let n=0; n<16; n++)


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 16 spaces but found 4 tabs.

this.ledPacket[18+n] = this.cmdData[24+n];


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

this.ledPacket[18+n] = this.cmdData[24+n];


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

this.ledPacket[18+n] = this.cmdData[24+n];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.


⚠️ [eslint] <brace-style> reported by reviewdog 🐶
Closing curly brace does not appear on the same line as the subsequent block.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "else".


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

this.ledPacket[0] = 0;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

this.ledPacket[1] = 0;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 0 spaces but found 1.

//////////////// 하드웨어로 보낼 데이터 로직 /////////////


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

if(((this.ledPacket[0]&0xC0) == 0xC0) || ((this.ledPacket[1]&0xC0) == 0xC0)){


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(((this.ledPacket[0]&0xC0) == 0xC0) || ((this.ledPacket[1]&0xC0) == 0xC0)){


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '&' must be spaced.

if(((this.ledPacket[0]&0xC0) == 0xC0) || ((this.ledPacket[1]&0xC0) == 0xC0)){


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '&' must be spaced.

if(((this.ledPacket[0]&0xC0) == 0xC0) || ((this.ledPacket[1]&0xC0) == 0xC0)){


⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

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;
}


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

if((this.txCnt%2) == 0){


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if((this.txCnt%2) == 0){


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '%' must be spaced.

if((this.txCnt%2) == 0){


⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

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];
}


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

this.cmdData[14] = this.ledPacket[0];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

for(let n=0; n<16; n++)


⚠️ [eslint] <curly> reported by reviewdog 🐶
Expected { after 'for' condition.

for(let n=0; n<16; n++)


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "for".

for(let n=0; n<16; n++)


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '=' must be spaced.

for(let n=0; n<16; n++)


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '<' must be spaced.

for(let n=0; n<16; n++)


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 16 spaces but found 4 tabs.

this.cmdData[24+n] = this.ledPacket[2+n];


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

this.cmdData[24+n] = this.ledPacket[2+n];


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

this.cmdData[24+n] = this.ledPacket[2+n];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <brace-style> reported by reviewdog 🐶
Closing curly brace does not appear on the same line as the subsequent block.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "else".


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

this.cmdData[14] = this.ledPacket[1];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

for(let n=0; n<16; n++)


⚠️ [eslint] <curly> reported by reviewdog 🐶
Expected { after 'for' condition.

for(let n=0; n<16; n++)


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "for".

for(let n=0; n<16; n++)


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '=' must be spaced.

for(let n=0; n<16; n++)


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '<' must be spaced.

for(let n=0; n<16; n++)


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 16 spaces but found 4 tabs.

this.cmdData[24+n] = this.ledPacket[18+n];


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

this.cmdData[24+n] = this.ledPacket[18+n];


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

this.cmdData[24+n] = this.ledPacket[18+n];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

this.cmdData[5] = checksum(this.cmdData);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

this.txCnt += 1;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

return this.cmdData;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

let sensorData = this.sensorData;


⚠️ [eslint] <prefer-const> reported by reviewdog 🐶
'sensorData' is never reassigned. Use 'const' instead.

let sensorData = this.sensorData;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

let dongleData = this.dongleData;


⚠️ [eslint] <prefer-const> reported by reviewdog 🐶
'dongleData' is never reassigned. Use 'const' instead.

let dongleData = this.dongleData;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

let pktLength = this.pktLength;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

let robodog_head = this.robodog_head;


⚠️ [eslint] <camelcase> reported by reviewdog 🐶
Identifier 'robodog_head' is not in camel case.

let robodog_head = this.robodog_head;


⚠️ [eslint] <prefer-const> reported by reviewdog 🐶
'robodog_head' is never reassigned. Use 'const' instead.

let robodog_head = this.robodog_head;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

data.forEach(function (value) {


⚠️ [eslint] <space-before-function-paren> reported by reviewdog 🐶
Unexpected space before function parentheses.

data.forEach(function (value) {


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

this.rk_cnt = (value==robodog_head[this.rk_cnt])? this.rk_cnt+1 : 0;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '==' must be spaced.

this.rk_cnt = (value==robodog_head[this.rk_cnt])? this.rk_cnt+1 : 0;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

this.rk_cnt = (value==robodog_head[this.rk_cnt])? this.rk_cnt+1 : 0;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

this.rk_cnt = (value==robodog_head[this.rk_cnt])? this.rk_cnt+1 : 0;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

if(this.rk_cnt == 4){


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(this.rk_cnt == 4){


⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(this.rk_cnt == 4){
this.rk_cnt = 0;
this.pktCnt = 0;
}


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

this.rk_cnt = 0;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

this.pktCnt = 0;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <brace-style> reported by reviewdog 🐶
Closing curly brace does not appear on the same line as the subsequent block.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

else if(this.pktCnt >= 0){


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

else if(this.pktCnt >= 0){


⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

else if(this.pktCnt >= 0){
if(this.pktCnt == 0)
pktLength = ((value>0) && (value<19))? value-4 : 16;
dongleData[4+this.pktCnt++] = value;
}


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

if(this.pktCnt == 0)


⚠️ [eslint] <curly> reported by reviewdog 🐶
Expected { after 'if' condition.

if(this.pktCnt == 0)


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(this.pktCnt == 0)


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 16 spaces but found 5 tabs.

pktLength = ((value>0) && (value<19))? value-4 : 16;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '>' must be spaced.

pktLength = ((value>0) && (value<19))? value-4 : 16;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '<' must be spaced.

pktLength = ((value>0) && (value<19))? value-4 : 16;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

pktLength = ((value>0) && (value<19))? value-4 : 16;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '-' must be spaced.

pktLength = ((value>0) && (value<19))? value-4 : 16;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

dongleData[4+this.pktCnt++] = value;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '+' must be spaced.

dongleData[4+this.pktCnt++] = value;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

if(this.pktCnt == pktLength){


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(this.pktCnt == pktLength){


⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

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;
});
}
}


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

this.pktCnt = -1;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

var sum = 0;


⚠️ [eslint] <no-var> reported by reviewdog 🐶
Unexpected var, use let or const instead.

var sum = 0;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

dongleData.forEach(function (value, idx) {


⚠️ [eslint] <prefer-arrow-callback> reported by reviewdog 🐶
Unexpected function expression.

dongleData.forEach(function (value, idx) {
if(idx > 5)
sum += value;
});


⚠️ [eslint] <space-before-function-paren> reported by reviewdog 🐶
Unexpected space before function parentheses.

dongleData.forEach(function (value, idx) {


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 16 spaces but found 4 tabs.

if(idx > 5)


⚠️ [eslint] <curly> reported by reviewdog 🐶
Expected { after 'if' condition.

if(idx > 5)


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(idx > 5)


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 20 spaces but found 5 tabs.

sum += value;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.

if(dongleData[5] == (sum&0xFF)){


⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

if(dongleData[5] == (sum&0xFF)){


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '&' must be spaced.

if(dongleData[5] == (sum&0xFF)){


⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

if(dongleData[5] == (sum&0xFF)){
dongleData.forEach(function (value, idx) {
sensorData[idx] = value;
});
}


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 16 spaces but found 4 tabs.

dongleData.forEach(function (value, idx) {


⚠️ [eslint] <prefer-arrow-callback> reported by reviewdog 🐶
Unexpected function expression.

dongleData.forEach(function (value, idx) {
sensorData[idx] = value;
});


⚠️ [eslint] <space-before-function-paren> reported by reviewdog 🐶
Unexpected space before function parentheses.

dongleData.forEach(function (value, idx) {


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 20 spaces but found 5 tabs.

sensorData[idx] = value;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 16 spaces but found 4 tabs.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 12 spaces but found 3 tabs.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

this.pktLength = pktLength;


⚠️ [eslint] <brace-style> reported by reviewdog 🐶
Opening curly brace does not appear on the same line as controlling statement.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

return data>127? data-256 : data;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '>' must be spaced.

return data>127? data-256 : data;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

return data>127? data-256 : data;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '-' must be spaced.

return data>127? data-256 : data;


⚠️ [eslint] <brace-style> reported by reviewdog 🐶
Opening curly brace does not appear on the same line as controlling statement.


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

return data>32767? data-65536 : data;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '>' must be spaced.

return data>32767? data-65536 : data;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

return data>32767? data-65536 : data;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '-' must be spaced.

return data>32767? data-65536 : data;


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write("SENSORDATA", this.sensorData);


⚠️ [eslint] <quotes> reported by reviewdog 🐶
Strings must use singlequote.

handler.write("SENSORDATA", this.sensorData);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('BATTERY', this.sensorData[6]);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('TOF', this.sensorData[7]);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('ROLL', unsingToSign8(this.sensorData[8]));


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('PITCH', unsingToSign8(this.sensorData[9]));


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('YAW', unsingToSign16(this.sensorData[10] + this.sensorData[11]*256));


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '*' must be spaced.

handler.write('YAW', unsingToSign16(this.sensorData[10] + this.sensorData[11]*256));


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('RB0', this.sensorData[12]>127? this.sensorData[12]-256 : this.sensorData[12]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '>' must be spaced.

handler.write('RB0', this.sensorData[12]>127? this.sensorData[12]-256 : this.sensorData[12]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

handler.write('RB0', this.sensorData[12]>127? this.sensorData[12]-256 : this.sensorData[12]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '-' must be spaced.

handler.write('RB0', this.sensorData[12]>127? this.sensorData[12]-256 : this.sensorData[12]);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('RB1', this.sensorData[13]>127? this.sensorData[13]-256 : this.sensorData[13]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '>' must be spaced.

handler.write('RB1', this.sensorData[13]>127? this.sensorData[13]-256 : this.sensorData[13]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

handler.write('RB1', this.sensorData[13]>127? this.sensorData[13]-256 : this.sensorData[13]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '-' must be spaced.

handler.write('RB1', this.sensorData[13]>127? this.sensorData[13]-256 : this.sensorData[13]);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('RB2', this.sensorData[14]>127? this.sensorData[14]-256 : this.sensorData[14]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '>' must be spaced.

handler.write('RB2', this.sensorData[14]>127? this.sensorData[14]-256 : this.sensorData[14]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

handler.write('RB2', this.sensorData[14]>127? this.sensorData[14]-256 : this.sensorData[14]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '-' must be spaced.

handler.write('RB2', this.sensorData[14]>127? this.sensorData[14]-256 : this.sensorData[14]);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('RB3', this.sensorData[15]>127? this.sensorData[15]-256 : this.sensorData[15]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '>' must be spaced.

handler.write('RB3', this.sensorData[15]>127? this.sensorData[15]-256 : this.sensorData[15]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

handler.write('RB3', this.sensorData[15]>127? this.sensorData[15]-256 : this.sensorData[15]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '-' must be spaced.

handler.write('RB3', this.sensorData[15]>127? this.sensorData[15]-256 : this.sensorData[15]);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('BUTTON', this.sensorData[16]);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('RB_WATCHDOG', this.sensorData[17]);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('RB4', this.sensorData[18]>127? this.sensorData[18]-256 : this.sensorData[18]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '>' must be spaced.

handler.write('RB4', this.sensorData[18]>127? this.sensorData[18]-256 : this.sensorData[18]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

handler.write('RB4', this.sensorData[18]>127? this.sensorData[18]-256 : this.sensorData[18]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '-' must be spaced.

handler.write('RB4', this.sensorData[18]>127? this.sensorData[18]-256 : this.sensorData[18]);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

handler.write('RB5', this.sensorData[19]>127? this.sensorData[19]-256 : this.sensorData[19]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '>' must be spaced.

handler.write('RB5', this.sensorData[19]>127? this.sensorData[19]-256 : this.sensorData[19]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '?' must be spaced.

handler.write('RB5', this.sensorData[19]>127? this.sensorData[19]-256 : this.sensorData[19]);


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '-' must be spaced.

handler.write('RB5', this.sensorData[19]>127? this.sensorData[19]-256 : this.sensorData[19]);


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

this.cmdData = [0x26, 0xA8, 0x14, 0x81, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00,


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

0x64, 0x64, 0x64, 0x64, 0x64, 0x64, 0x64, 0x64];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

this.sensorData = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];


⚠️ [eslint] <max-len> reported by reviewdog 🐶
This line has a length of 124. Maximum allowed is 120.

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];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

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];


⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

console.log("reset");


⚠️ [eslint] <quotes> reported by reviewdog 🐶
Strings must use singlequote.

console.log("reset");


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '*' must be spaced.

this.inputData.irSensor.FL = data[this.IR]*4;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '*' must be spaced.

this.inputData.irSensor.FR = data[this.IR + 1]*4;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '*' must be spaced.

this.inputData.irSensor.BL = data[this.IR + 2]*4;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '*' must be spaced.

this.inputData.irSensor.BM = data[this.IR + 3]*4;


⚠️ [eslint] <space-infix-ops> reported by reviewdog 🐶
Operator '*' must be spaced.

this.inputData.irSensor.BR = data[this.IR + 4]*4;

@@ -58,12 +58,15 @@ function Module() {
Osci: 27000000,
Freq: 50
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

Suggested change
}
};

this.Board_Servo = {
Pulse_Min: 150,
Pulse_Max: 600,
us_Min: 400,
us_Max: 2100
us_Max: 2100,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

Suggested change
us_Max: 2100,
us_Max: 2100,

this.Board_Servo = {
Pulse_Min: 150,
Pulse_Max: 600,
us_Min: 400,
us_Max: 2100
us_Max: 2100,
angle: 90

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

Suggested change
angle: 90
angle: 90

this.Board_Servo = {
Pulse_Min: 150,
Pulse_Max: 600,
us_Min: 400,
us_Max: 2100
us_Max: 2100,
angle: 90

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

Suggested change
angle: 90
angle: 90,

this.Board_Servo = {
Pulse_Min: 150,
Pulse_Max: 600,
us_Min: 400,
us_Max: 2100
us_Max: 2100,
angle: 90
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <semi> reported by reviewdog 🐶
Missing semicolon.

Suggested change
}
};

var self = this;
// data.length => 211
var checksum = 0;
var getChecksum = 0;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <no-var> reported by reviewdog 🐶
Unexpected var, use let or const instead.

Suggested change
var getChecksum = 0;
let getChecksum = 0;

// data.length => 211
var checksum = 0;
var getChecksum = 0;
for (var i = 0; i < data.length; i++) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 4 spaces but found 1 tab.

Suggested change
for (var i = 0; i < data.length; i++) {
for (var i = 0; i < data.length; i++) {

// data.length => 211
var checksum = 0;
var getChecksum = 0;
for (var i = 0; i < data.length; i++) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <no-var> reported by reviewdog 🐶
Unexpected var, use let or const instead.

Suggested change
for (var i = 0; i < data.length; i++) {
for (let i = 0; i < data.length; i++) {

var checksum = 0;
var getChecksum = 0;
for (var i = 0; i < data.length; i++) {
if(self.dataSet.length > i)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <indent> reported by reviewdog 🐶
Expected indentation of 8 spaces but found 2 tabs.

Suggested change
if(self.dataSet.length > i)
if(self.dataSet.length > i)

var checksum = 0;
var getChecksum = 0;
for (var i = 0; i < data.length; i++) {
if(self.dataSet.length > i)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <keyword-spacing> reported by reviewdog 🐶
Expected space(s) after "if".

Suggested change
if(self.dataSet.length > i)
if (self.dataSet.length > i)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

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];
}
}
});
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

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];
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <space-before-blocks> reported by reviewdog 🐶
Missing space before opening brace.

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];
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants