mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 03:19:54 +03:00
Drop IMU2 function
This commit is contained in:
parent
dc59dcb92e
commit
3e6dd4547d
10 changed files with 2 additions and 41 deletions
|
@ -464,7 +464,6 @@ function sensor_status_ex(hw_status)
|
|||
sensor_status_update_icon('.sonar', '.sonaricon', hw_status.rangeHwStatus);
|
||||
sensor_status_update_icon('.airspeed', '.airspeedicon', hw_status.speedHwStatus);
|
||||
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)
|
||||
|
@ -499,8 +498,7 @@ function sensor_status_hash(hw_status)
|
|||
hw_status.gpsHwStatus +
|
||||
hw_status.rangeHwStatus +
|
||||
hw_status.speedHwStatus +
|
||||
hw_status.flowHwStatus +
|
||||
hw_status.imu2HwStatus;
|
||||
hw_status.flowHwStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -523,7 +521,6 @@ function sensor_status(sensors_detected) {
|
|||
SENSOR_STATUS.rangeHwStatus = have_sensor(sensors_detected, 'sonar') ? 1 : 0;
|
||||
SENSOR_STATUS.speedHwStatus = have_sensor(sensors_detected, 'airspeed') ? 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue