mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
depthai: fixed app freezing if oakd device (oak-d lite) doesn't have imu and imu is requested.
This commit is contained in:
@@ -3931,9 +3931,10 @@ void PreferencesDialog::selectSourceDriver(Src src, int variant)
|
||||
// disable IMU filtering (zed sends already quaternion)
|
||||
_ui->comboBox_imuFilter_strategy->setCurrentIndex(0);
|
||||
}
|
||||
else if(src == kSrcStereoDepthAI) // OAK-D, OAK-D Lite
|
||||
else if(src == kSrcStereoDepthAI) // OAK-D (variant==1), OAK-D Lite (variant==0)
|
||||
{
|
||||
_ui->checkBox_depthai_imu_published->setChecked(variant == 1);
|
||||
_ui->comboBox_depthai_resolution->setCurrentIndex(variant == 1?1:3);
|
||||
}
|
||||
}
|
||||
else if(src >= kSrcRGB && src<kSrcDatabase)
|
||||
|
||||
Reference in New Issue
Block a user