Skip to content

Commit

Permalink
Merge pull request #2023 from iNavFlight/dzikuvx-drop-MSP_ANALOG
Browse files Browse the repository at this point in the history
Drop MSP_ANALOG MSP frame
  • Loading branch information
DzikuVx authored Apr 15, 2024
2 parents b9aad4f + 576cde5 commit a7634fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion js/msp/MSPCodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ var MSPCodes = {
MSP_COMP_GPS: 107,
MSP_ATTITUDE: 108,
MSP_ALTITUDE: 109,
MSP_ANALOG: 110,
MSP_RC_TUNING: 111,
MSP_PID: 112,
MSP_ACTIVEBOXES: 113,
Expand Down
10 changes: 0 additions & 10 deletions js/msp/MSPHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,6 @@ var mspHelper = (function (gui) {
case MSPCodes.MSPV2_INAV_AIR_SPEED:
SENSOR_DATA.air_speed = data.getInt32(0, true);
break;
case MSPCodes.MSP_ANALOG:
ANALOG.voltage = data.getUint8(0) / 10.0;
ANALOG.mAhdrawn = data.getUint16(1, true);
ANALOG.rssi = data.getUint16(3, true); // 0-1023
ANALOG.amperage = data.getInt16(5, true) / 100; // A
break;
case MSPCodes.MSPV2_INAV_ANALOG:
let tmp = data.getUint8(offset++);
ANALOG.battery_full_when_plugged_in = (tmp & 1 ? true : false);
Expand Down Expand Up @@ -2835,10 +2829,6 @@ var mspHelper = (function (gui) {
MSP.send_message(MSPCodes.MSP_ACC_TRIM, false, false, callback);
};

self.loadAnalog = function (callback) {
MSP.send_message(MSPCodes.MSP_ANALOG, false, false, callback);
};

self.saveToEeprom = function saveToEeprom(callback) {
MSP.send_message(MSPCodes.MSP_EEPROM_WRITE, false, false, callback);
};
Expand Down

0 comments on commit a7634fb

Please sign in to comment.