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.60 version up #795

Merged
merged 14 commits into from
Nov 21, 2024
Merged

1.9.60 version up #795

merged 14 commits into from
Nov 21, 2024

Conversation

Tnks2U
Copy link
Contributor

@Tnks2U Tnks2U commented Nov 21, 2024

@Tnks2U Tnks2U self-assigned this Nov 21, 2024
@Tnks2U Tnks2U merged commit bbc36c5 into master Nov 21, 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] <space-before-function-paren> reported by reviewdog 🐶
Unexpected space before function parentheses.

Module.prototype.reset = function () {


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

if( this.countDroneConnectionAttempt == 4){
// console.log("Connection failed");
this.countDroneConnectionAttempt = 0 ;
clearInterval(this.getStateInterval);
return
}


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

if(chunkData[i] == 0xff


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

&& chunkData[i+1] == 0x42


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

let msg=""
const ERR_NONE =0


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


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

const ERR_NONE =0
const ERR_LOWBATT =this.BIT0


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

const ERR_LOWBATT =this.BIT0


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

const ERR_LOWBATT =this.BIT0
const ERR_CODE =this.BIT1


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

const ERR_CODE =this.BIT1


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

const ERR_CODE =this.BIT1
const ERR_TEMP =this.BIT3


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

const ERR_TEMP =this.BIT3


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

const ERR_TEMP =this.BIT3
const ERR_SENSORS =this.BIT4


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

const ERR_SENSORS =this.BIT4


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

const ERR_SENSORS =this.BIT4
const ERR_LOADER =this.BIT5


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

const ERR_LOADER =this.BIT5


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

const ERR_LOADER =this.BIT5
const ERR_ANGLE =this.BIT6


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

const ERR_ANGLE =this.BIT6


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

const ERR_ANGLE =this.BIT6
if (ErrFly == ERR_NONE){


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

let SPLIT_STRING = "------------------------------------\n"
let msg = "STATE_PITCH= " + (Math.round(this.sensor.Pitch, 3)).toString() + "\n"


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

let msg = "STATE_PITCH= " + (Math.round(this.sensor.Pitch, 3)).toString() + "\n"


⚠️ [eslint] <prefer-template> reported by reviewdog 🐶
Unexpected string concatenation.

let msg = "STATE_PITCH= " + (Math.round(this.sensor.Pitch, 3)).toString() + "\n"


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

let msg = "STATE_PITCH= " + (Math.round(this.sensor.Pitch, 3)).toString() + "\n"


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

let msg = "STATE_PITCH= " + (Math.round(this.sensor.Pitch, 3)).toString() + "\n"
msg = msg + "STATE_ROLL= " + (Math.round(this.sensor.Roll, 3)).toString() + "\n"


⚠️ [eslint] <prefer-template> reported by reviewdog 🐶
Unexpected string concatenation.

msg = msg + "STATE_ROLL= " + (Math.round(this.sensor.Roll, 3)).toString() + "\n"


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

msg = msg + "STATE_ROLL= " + (Math.round(this.sensor.Roll, 3)).toString() + "\n"


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

msg = msg + "STATE_ROLL= " + (Math.round(this.sensor.Roll, 3)).toString() + "\n"


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

msg = msg + "STATE_ROLL= " + (Math.round(this.sensor.Roll, 3)).toString() + "\n"
msg = msg + "STATE_YAW= " + (Math.round(this.sensor.Yaw, 3)).toString() + "\n"


⚠️ [eslint] <prefer-template> reported by reviewdog 🐶
Unexpected string concatenation.

msg = msg + "STATE_YAW= " + (Math.round(this.sensor.Yaw, 3)).toString() + "\n"


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

msg = msg + "STATE_YAW= " + (Math.round(this.sensor.Yaw, 3)).toString() + "\n"


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

msg = msg + "STATE_YAW= " + (Math.round(this.sensor.Yaw, 3)).toString() + "\n"


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

msg = msg + "STATE_YAW= " + (Math.round(this.sensor.Yaw, 3)).toString() + "\n"
msg = msg + SPLIT_STRING


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

msg = msg + SPLIT_STRING


⚠️ [eslint] <prefer-template> reported by reviewdog 🐶
Unexpected string concatenation.

msg = msg + "STATE_TEMP= " + (Math.round(this.sensor.SPL06_temp, 3)).toString() + "\n"


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

msg = msg + "STATE_TEMP= " + (Math.round(this.sensor.SPL06_temp, 3)).toString() + "\n"


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

msg = msg + "STATE_TEMP= " + (Math.round(this.sensor.SPL06_temp, 3)).toString() + "\n"


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

msg = msg + "STATE_TEMP= " + (Math.round(this.sensor.SPL06_temp, 3)).toString() + "\n"


⚠️ [eslint] <prefer-template> reported by reviewdog 🐶
Unexpected string concatenation.

msg = msg + "FusedHeight= " + (Math.round(this.sensor.FusedHeight, 3)).toString() + "\n"


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

msg = msg + "FusedHeight= " + (Math.round(this.sensor.FusedHeight, 3)).toString() + "\n"


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

msg = msg + "FusedHeight= " + (Math.round(this.sensor.FusedHeight, 3)).toString() + "\n"


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

msg = msg + "FusedHeight= " + (Math.round(this.sensor.FusedHeight, 3)).toString() + "\n"


⚠️ [eslint] <prefer-template> reported by reviewdog 🐶
Unexpected string concatenation.

msg = msg + "BATTERY= " + (Math.round(this.sensor.Battery, 3)).toString() + "\n"


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

msg = msg + "BATTERY= " + (Math.round(this.sensor.Battery, 3)).toString() + "\n"


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

msg = msg + "BATTERY= " + (Math.round(this.sensor.Battery, 3)).toString() + "\n"


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

msg = msg + "BATTERY= " + (Math.round(this.sensor.Battery, 3)).toString() + "\n"


⚠️ [eslint] <prefer-template> reported by reviewdog 🐶
Unexpected string concatenation.

msg = msg + "VER= " + this.VERSTR() + "\n"


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

msg = msg + "VER= " + this.VERSTR() + "\n"


⚠️ [eslint] <new-cap> reported by reviewdog 🐶
A function with a name starting with an uppercase letter should only be used as a constructor.

msg = msg + "VER= " + this.VERSTR() + "\n"


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

msg = msg + "VER= " + this.VERSTR() + "\n"


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

msg = msg + "VER= " + this.VERSTR() + "\n"
msg = msg + SPLIT_STRING


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

msg = msg + SPLIT_STRING
msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n"


⚠️ [eslint] <prefer-template> reported by reviewdog 🐶
Unexpected string concatenation.

msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n"


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

msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n"


⚠️ [eslint] <new-cap> reported by reviewdog 🐶
A function with a name starting with an uppercase letter should only be used as a constructor.

msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n"


⚠️ [eslint] <radix> reported by reviewdog 🐶
Missing radix parameter.

msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n"


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

msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n"


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

msg = msg + "FLY_ERR= " + this.ErrFly2String(parseInt(this.sensor.ErrFly)) + "\n"
msg = msg + "LINE_NO= " + (this.sensor.LineNo) + "\n"


⚠️ [eslint] <prefer-template> reported by reviewdog 🐶
Unexpected string concatenation.

msg = msg + "LINE_NO= " + (this.sensor.LineNo) + "\n"


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

msg = msg + "LINE_NO= " + (this.sensor.LineNo) + "\n"


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

msg = msg + "LINE_NO= " + (this.sensor.LineNo) + "\n"


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

msg = msg + "LINE_NO= " + (this.sensor.LineNo) + "\n"
msg = msg + "ERROR_NO= " + (this.sensor.LineError) + "\n"


⚠️ [eslint] <prefer-template> reported by reviewdog 🐶
Unexpected string concatenation.

msg = msg + "ERROR_NO= " + (this.sensor.LineError) + "\n"


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

msg = msg + "ERROR_NO= " + (this.sensor.LineError) + "\n"


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

msg = msg + "ERROR_NO= " + (this.sensor.LineError) + "\n"


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

msg = msg + "ERROR_NO= " + (this.sensor.LineError) + "\n"
msg = msg + "ERROR_MSG= " + this.Errcode2Msg(this.sensor.ErrorCode) + "\n"


⚠️ [eslint] <prefer-template> reported by reviewdog 🐶
Unexpected string concatenation.

msg = msg + "ERROR_MSG= " + this.Errcode2Msg(this.sensor.ErrorCode) + "\n"


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

msg = msg + "ERROR_MSG= " + this.Errcode2Msg(this.sensor.ErrorCode) + "\n"


⚠️ [eslint] <new-cap> reported by reviewdog 🐶
A function with a name starting with an uppercase letter should only be used as a constructor.

msg = msg + "ERROR_MSG= " + this.Errcode2Msg(this.sensor.ErrorCode) + "\n"


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

msg = msg + "ERROR_MSG= " + this.Errcode2Msg(this.sensor.ErrorCode) + "\n"


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

msg = msg + "ERROR_MSG= " + this.Errcode2Msg(this.sensor.ErrorCode) + "\n"


⚠️ [eslint] <prefer-template> reported by reviewdog 🐶
Unexpected string concatenation.

msg = msg + "DEBUG1= " + (Math.round(this.sensor.Debug_0, 6)).toString() + "\n"


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

msg = msg + "DEBUG1= " + (Math.round(this.sensor.Debug_0, 6)).toString() + "\n"


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

msg = msg + "DEBUG1= " + (Math.round(this.sensor.Debug_0, 6)).toString() + "\n"


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

msg = msg + "DEBUG1= " + (Math.round(this.sensor.Debug_0, 6)).toString() + "\n"
msg = msg + "DEBUG2= " + (Math.round(this.sensor.Debug_1, 6)).toString() + "\n"


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

this.sensor.M4 = parseInt(revdata[this.BT_INDEX_DATA_REV + 17 * 4 + 3])


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

this.sensor.state_velocity_z = this.byte2float(this.BT_INDEX_DATA_REV + 20 * 4)


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

this.sensor.FusedHeight = this.byte2float(this.BT_INDEX_DATA_REV + 27 * 4)


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

this.sensor.VER = parseInt(revdata[this.BT_INDEX_DATA_REV + 28 * 4 + 0])
this.sensor.ErrFly = parseInt(revdata[this.BT_INDEX_DATA_REV + 28 * 4 + 1])


⚠️ [eslint] <radix> reported by reviewdog 🐶
Missing radix parameter.

this.sensor.ErrFly = parseInt(revdata[this.BT_INDEX_DATA_REV + 28 * 4 + 1])


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

this.sensor.ErrFly = parseInt(revdata[this.BT_INDEX_DATA_REV + 28 * 4 + 1])
let msg = this.Sensor2String();


⚠️ [eslint] <new-cap> reported by reviewdog 🐶
A function with a name starting with an uppercase letter should only be used as a constructor.

await this.HandleRun();

cds: 0,
switch1: 0,
switch2: 0,
switch3: 0

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
switch3: 0
switch3: 0,

display8: 0,
display9: 0,
isSend: 0,
switch: 0

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
switch: 0
switch: 0,

};
}

var IOTSMARTFARM = {

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 IOTSMARTFARM = {
let IOTSMARTFARM = {

DISPLAY7: 'display7',
DISPLAY8: 'display8',
DISPLAY9: 'display9',
SWITCH: 'switch'

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
SWITCH: 'switch'
SWITCH: 'switch',

//console.log(this.motoring.lcdTxt);
};

Module.prototype.lostController = function() {}

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
Module.prototype.lostController = function() {}
Module.prototype.lostController = function() {};

tx_d[20] = motordata.display9; // Display
tx_d[21] = 0x03; // End

var checksum = 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 checksum = 0;
let checksum = 0;

tx_d[21] = 0x03; // End

var checksum = 0;
for(var i = 3; i < 21; 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 "for".

Suggested change
for(var i = 3; i < 21; i++){
for (var i = 3; i < 21; i++){

tx_d[21] = 0x03; // End

var checksum = 0;
for(var i = 3; i < 21; i++){

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 = 3; i < 21; i++){
for(let i = 3; i < 21; i++){

tx_d[21] = 0x03; // End

var checksum = 0;
for(var i = 3; i < 21; 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.

Suggested change
for(var i = 3; i < 21; i++){
for(var i = 3; i < 21; i++) {

}

tx_d[2] = checksum & 0xFF;
return tx_d;

Choose a reason for hiding this comment

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

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

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.

connectDrone(){
this.getStateInterval = setInterval(()=>{
if(this.countDroneConnectionAttempt == 0 || !this.isLockGetState()){
// console.log("Connection Attempt",this.countDroneConnectionAttempt+1)
this.countDroneConnectionAttempt = this.countDroneConnectionAttempt +1
if(this.isDroneConnection == false){
if( this.countDroneConnectionAttempt == 4){
// console.log("Connection failed");
this.countDroneConnectionAttempt = 0 ;
clearInterval(this.getStateInterval);
return
}
}
else{
// console.log("Connection succeed");
// console.log("Drone is connected")
this.isDroneConnection = true;
this.countDroneConnectionAttempt = 0 ;
clearInterval(this.getStateInterval);
}
}
},this.getStateTimeSleep)
this.getStateInterval;
}

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.countDroneConnectionAttempt == 0 || !this.isLockGetState()){
// console.log("Connection Attempt",this.countDroneConnectionAttempt+1)
this.countDroneConnectionAttempt = this.countDroneConnectionAttempt +1
if(this.isDroneConnection == false){
if( this.countDroneConnectionAttempt == 4){
// console.log("Connection failed");
this.countDroneConnectionAttempt = 0 ;
clearInterval(this.getStateInterval);
return
}
}
else{
// console.log("Connection succeed");
// console.log("Drone is connected")
this.isDroneConnection = true;
this.countDroneConnectionAttempt = 0 ;
clearInterval(this.getStateInterval);
}
}

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.isDroneConnection == false){
if( this.countDroneConnectionAttempt == 4){
// console.log("Connection failed");
this.countDroneConnectionAttempt = 0 ;
clearInterval(this.getStateInterval);
return
}
}

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(this.revdata[this.BT_INDEX_CMD_REV] == this.BT_CMD_GETFLYSTATE1){
this.sensor.btkey = parseInt(revdata[2] + revdata[3] * 256)
this.sensor.btstick1 = parseInt(revdata[4])
this.sensor.btstick2 = parseInt(revdata[5])
this.sensor.btstick3 = parseInt(revdata[6])
this.sensor.btstick4 = parseInt(revdata[7])
this.sensor.ACC_x = this.byte2float(this.BT_INDEX_DATA_REV + 0 * 4)
this.sensor.ACC_y = this.byte2float(this.BT_INDEX_DATA_REV + 1 * 4)
this.sensor.ACC_z = this.byte2float(this.BT_INDEX_DATA_REV + 2 * 4)
this.sensor.Gypo_x = this.byte2float(this.BT_INDEX_DATA_REV + 3 * 4)
this.sensor.Gypo_y = this.byte2float(this.BT_INDEX_DATA_REV + 4 * 4)
this.sensor.Gypo_z = this.byte2float(this.BT_INDEX_DATA_REV + 5 * 4)
this.sensor.SPL06_temp = this.byte2float(this.BT_INDEX_DATA_REV + 6 * 4)
this.sensor.SPL06_Press = this.byte2float(this.BT_INDEX_DATA_REV + 7 * 4)
this.sensor.SPL06_asl = this.byte2float(this.BT_INDEX_DATA_REV + 8 * 4)
this.sensor.Pitch = this.byte2float(this.BT_INDEX_DATA_REV + 9 * 4)
this.sensor.Roll = this.byte2float(this.BT_INDEX_DATA_REV + 10 * 4)
this.sensor.Yaw = this.byte2float(this.BT_INDEX_DATA_REV + 11 * 4)
this.sensor.Battery = this.byte2float(this.BT_INDEX_DATA_REV + 12 * 4)
this.sensor.LaserTof = this.byte2float(this.BT_INDEX_DATA_REV + 13 * 4)
this.sensor.GL_X = this.byte2float(this.BT_INDEX_DATA_REV + 14 * 4)
this.sensor.GL_Y = this.byte2float(this.BT_INDEX_DATA_REV + 15 * 4)
this.sensor.timertick = this.byte2float(this.BT_INDEX_DATA_REV + 16 * 4)
this.sensor.M1 = parseInt(revdata[this.BT_INDEX_DATA_REV + 17 * 4 + 0])
this.sensor.M2 = parseInt(revdata[this.BT_INDEX_DATA_REV + 17 * 4 + 1])
this.sensor.M3 = parseInt(revdata[this.BT_INDEX_DATA_REV + 17 * 4 + 2])
this.sensor.M4 = parseInt(revdata[this.BT_INDEX_DATA_REV + 17 * 4 + 3])
this.sensor.state_velocity_x = this.byte2float(this.BT_INDEX_DATA_REV + 18 * 4)
this.sensor.state_velocity_y = this.byte2float(this.BT_INDEX_DATA_REV + 19 * 4)
this.sensor.state_velocity_z = this.byte2float(this.BT_INDEX_DATA_REV + 20 * 4)
this.sensor.Debug_0 = this.byte2float(this.BT_INDEX_DATA_REV + 21 * 4)
this.sensor.Debug_1 = this.byte2float(this.BT_INDEX_DATA_REV + 22 * 4)
this.sensor.Debug_2 = this.byte2float(this.BT_INDEX_DATA_REV + 23 * 4)
this.sensor.Debug_3 = this.byte2float(this.BT_INDEX_DATA_REV + 24 * 4)
this.sensor.Debug_4 = this.byte2float(this.BT_INDEX_DATA_REV + 25 * 4)
this.sensor.Debug_5 = this.byte2float(this.BT_INDEX_DATA_REV + 26 * 4)
this.sensor.FusedHeight = this.byte2float(this.BT_INDEX_DATA_REV + 27 * 4)
this.sensor.VER = parseInt(revdata[this.BT_INDEX_DATA_REV + 28 * 4 + 0])
this.sensor.ErrFly = parseInt(revdata[this.BT_INDEX_DATA_REV + 28 * 4 + 1])
let msg = this.Sensor2String();
// console.log(msg);
}

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.

6 participants