mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
DBViewer: show local transform in calibration parameters, increased precision of small numbers < 0.001 for parameters toolbox
This commit is contained in:
@@ -358,7 +358,11 @@ void ParametersToolBox::addParameter(QVBoxLayout * layout,
|
||||
{
|
||||
QDoubleSpinBox * widget = new QDoubleSpinBox(this);
|
||||
double def = uStr2Double(Parameters::getDefaultParameters().at(key.toStdString()));
|
||||
if(def<0.01)
|
||||
if(def<0.001)
|
||||
{
|
||||
widget->setDecimals(5);
|
||||
}
|
||||
else if(def<0.01)
|
||||
{
|
||||
widget->setDecimals(4);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user