|
|
@ -179,7 +179,7 @@ void DevicePanel::updateCalibDescription() { |
|
|
|
if (calib.getCalStatus() != 0) { |
|
|
|
if (calib.getCalStatus() != 0) { |
|
|
|
double pitch = calib.getRpyCalib()[1] * (180 / M_PI); |
|
|
|
double pitch = calib.getRpyCalib()[1] * (180 / M_PI); |
|
|
|
double yaw = calib.getRpyCalib()[2] * (180 / M_PI); |
|
|
|
double yaw = calib.getRpyCalib()[2] * (180 / M_PI); |
|
|
|
desc += QString(tr(" Your device is pointed %1° %2 and %3° %4.")) |
|
|
|
desc += tr(" Your device is pointed %1° %2 and %3° %4.") |
|
|
|
.arg(QString::number(std::abs(pitch), 'g', 1), pitch > 0 ? tr("down") : tr("up"), |
|
|
|
.arg(QString::number(std::abs(pitch), 'g', 1), pitch > 0 ? tr("down") : tr("up"), |
|
|
|
QString::number(std::abs(yaw), 'g', 1), yaw > 0 ? tr("left") : tr("right")); |
|
|
|
QString::number(std::abs(yaw), 'g', 1), yaw > 0 ? tr("left") : tr("right")); |
|
|
|
} |
|
|
|
} |
|
|
|