1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

Drop IMU2 function

This commit is contained in:
Pawel Spychalski (DzikuVx) 2022-10-23 09:59:54 +02:00
parent dc59dcb92e
commit 3e6dd4547d
10 changed files with 2 additions and 41 deletions

View file

@ -1169,9 +1169,6 @@
"portsFunction_MSP_DISPLAYPORT": { "portsFunction_MSP_DISPLAYPORT": {
"message": "MSP Displayport" "message": "MSP Displayport"
}, },
"portsFunction_IMU2": {
"message": "Secondary IMU"
},
"pidTuning_ShowAllPIDs": { "pidTuning_ShowAllPIDs": {
"message": "Show all PIDs" "message": "Show all PIDs"
}, },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

View file

@ -92,8 +92,7 @@ var FC = {
gpsHwStatus: 0, gpsHwStatus: 0,
rangeHwStatus: 0, rangeHwStatus: 0,
speedHwStatus: 0, speedHwStatus: 0,
flowHwStatus: 0, flowHwStatus: 0
imu2HwStatus: 0
}; };
SENSOR_CONFIG = { SENSOR_CONFIG = {

View file

@ -43,7 +43,6 @@ var mspHelper = (function (gui) {
'FRSKY_OSD': 20, 'FRSKY_OSD': 20,
'DJI_FPV': 21, 'DJI_FPV': 21,
'SMARTPORT_MASTER': 23, 'SMARTPORT_MASTER': 23,
'IMU2': 24,
'MSP_DISPLAYPORT': 25, 'MSP_DISPLAYPORT': 25,
}; };
@ -104,7 +103,6 @@ var mspHelper = (function (gui) {
SENSOR_STATUS.rangeHwStatus = data.getUint8(6); SENSOR_STATUS.rangeHwStatus = data.getUint8(6);
SENSOR_STATUS.speedHwStatus = data.getUint8(7); SENSOR_STATUS.speedHwStatus = data.getUint8(7);
SENSOR_STATUS.flowHwStatus = data.getUint8(8); SENSOR_STATUS.flowHwStatus = data.getUint8(8);
SENSOR_STATUS.imu2HwStatus = data.getUint8(9);
sensor_status_ex(SENSOR_STATUS); sensor_status_ex(SENSOR_STATUS);
break; break;

View file

@ -464,7 +464,6 @@ function sensor_status_ex(hw_status)
sensor_status_update_icon('.sonar', '.sonaricon', hw_status.rangeHwStatus); sensor_status_update_icon('.sonar', '.sonaricon', hw_status.rangeHwStatus);
sensor_status_update_icon('.airspeed', '.airspeedicon', hw_status.speedHwStatus); sensor_status_update_icon('.airspeed', '.airspeedicon', hw_status.speedHwStatus);
sensor_status_update_icon('.opflow', '.opflowicon', hw_status.flowHwStatus); sensor_status_update_icon('.opflow', '.opflowicon', hw_status.flowHwStatus);
sensor_status_update_icon('.imu2', '.imu2icon', hw_status.imu2HwStatus);
} }
function sensor_status_update_icon(sensId, sensIconId, status) function sensor_status_update_icon(sensId, sensIconId, status)
@ -499,8 +498,7 @@ function sensor_status_hash(hw_status)
hw_status.gpsHwStatus + hw_status.gpsHwStatus +
hw_status.rangeHwStatus + hw_status.rangeHwStatus +
hw_status.speedHwStatus + hw_status.speedHwStatus +
hw_status.flowHwStatus + hw_status.flowHwStatus;
hw_status.imu2HwStatus;
} }
/** /**
@ -523,7 +521,6 @@ function sensor_status(sensors_detected) {
SENSOR_STATUS.rangeHwStatus = have_sensor(sensors_detected, 'sonar') ? 1 : 0; SENSOR_STATUS.rangeHwStatus = have_sensor(sensors_detected, 'sonar') ? 1 : 0;
SENSOR_STATUS.speedHwStatus = have_sensor(sensors_detected, 'airspeed') ? 1 : 0; SENSOR_STATUS.speedHwStatus = have_sensor(sensors_detected, 'airspeed') ? 1 : 0;
SENSOR_STATUS.flowHwStatus = have_sensor(sensors_detected, 'opflow') ? 1 : 0; SENSOR_STATUS.flowHwStatus = have_sensor(sensors_detected, 'opflow') ? 1 : 0;
SENSOR_STATUS.imu2HwStatus = have_sensor(sensors_detected, 'imu2') ? 1 : 0;
sensor_status_ex(SENSOR_STATUS); sensor_status_ex(SENSOR_STATUS);
} }

View file

@ -322,27 +322,6 @@ input[type="number"]::-webkit-inner-spin-button {
color: #d40000; color: #d40000;
} }
.imu2icon {
background: url("../images/icons/sensor_imu2_off.png") no-repeat -5px 2px;
background-size: 40px;
height: 30px;
margin-top: 3px;
width: 100%;
padding-top: 40px;
color: #4f4f4f;
text-align: center;
}
.imu2icon.active {
background-image: url("../images/icons/sensor_imu2_on.png");
color: #818181;
}
.imu2icon.error {
background-image: url("../images/icons/sensor_imu2_error.png");
color: #d40000;
}
.magicon { .magicon {
background: url("../images/icons/sensor_mag_off.png") no-repeat -5px 2px; background: url("../images/icons/sensor_mag_off.png") no-repeat -5px 2px;
background-size: 42px; background-size: 42px;

View file

@ -138,9 +138,6 @@
<li class="airspeed" title="Airspeed"> <li class="airspeed" title="Airspeed">
<div class="airspeedicon">Speed</div> <div class="airspeedicon">Speed</div>
</li> </li>
<li class="imu2" title="IMU2">
<div class="imu2icon">IMU2</div>
</li>
</ul> </ul>
</div> </div>
<div id="quad-status_wrapper"> <div id="quad-status_wrapper">

View file

@ -105,12 +105,6 @@ TABS.ports.initialize = function (callback) {
maxPorts: 1 } maxPorts: 1 }
); );
functionRules.push({
name: 'IMU2',
groups: ['peripherals'],
maxPorts: 1 }
);
for (var i = 0; i < functionRules.length; i++) { for (var i = 0; i < functionRules.length; i++) {
functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name); functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name);
} }