Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2022-02-23 18:34:44 +0300
committerPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2022-02-23 18:34:44 +0300
commit96407c9e9772bce4892509024c56972d845199e5 (patch)
treeffd9f775a083783bd653523abf331a7951874153 /js
parentd6a5992d97ebd7964c96ee6cb8bcc56f2b994334 (diff)
Drop MSP_PID frame
Diffstat (limited to 'js')
-rw-r--r--js/msp/MSPHelper.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/js/msp/MSPHelper.js b/js/msp/MSPHelper.js
index 0435ac00..976d39f4 100644
--- a/js/msp/MSPHelper.js
+++ b/js/msp/MSPHelper.js
@@ -284,14 +284,6 @@ var mspHelper = (function (gui) {
RC_tuning.manual_pitch_rate = data.getUint8(offset++);
RC_tuning.manual_yaw_rate = data.getUint8(offset++);
break;
- case MSPCodes.MSP_PID:
- // PID data arrived, we need to scale it and save to appropriate bank / array
- for (i = 0, needle = 0; i < (dataHandler.message_length_expected / 3); i++, needle += 3) {
- PIDs[i][0] = data.getUint8(needle);
- PIDs[i][1] = data.getUint8(needle + 1);
- PIDs[i][2] = data.getUint8(needle + 2);
- }
- break;
case MSPCodes.MSP2_PID:
// PID data arrived, we need to scale it and save to appropriate bank / array
for (i = 0, needle = 0; i < (dataHandler.message_length_expected / 4); i++, needle += 4) {
@@ -631,9 +623,6 @@ var mspHelper = (function (gui) {
break;
case MSPCodes.MSP_SET_RAW_GPS:
break;
- case MSPCodes.MSP_SET_PID:
- console.log('PID settings saved');
- break;
case MSPCodes.MSP2_SET_PID:
console.log('PID settings saved');
break;
@@ -1583,13 +1572,6 @@ var mspHelper = (function (gui) {
buffer.push(0);
buffer.push(VTX_CONFIG.low_power_disarm);
break;
- case MSPCodes.MSP_SET_PID:
- for (i = 0; i < PIDs.length; i++) {
- buffer.push(parseInt(PIDs[i][0]));
- buffer.push(parseInt(PIDs[i][1]));
- buffer.push(parseInt(PIDs[i][2]));
- }
- break;
case MSPCodes.MSP2_SET_PID:
for (i = 0; i < PIDs.length; i++) {
buffer.push(parseInt(PIDs[i][0]));