https://bugs.kde.org/show_bug.cgi?id=439221

--- Comment #8 from Fred <fred_...@hotmail.fr> ---
Jasem the bug fix is in fovdialog.cpp replace the lines :

// FOV in arcmins
double fov_x = 206264.8062470963552 * ui->cameraWidth->value() *
ui->cameraPixelSizeW->value() / 60000.0 / ui->TLength2->value();
double fov_y = 206264.8062470963552 * ui->cameraHeight->value() *
ui->cameraPixelSizeH->value() / 60000.0 / ui->TLength2->value();

By:

// FOV in arcmins
double fov_x = (60*180 / M_PI) * 2 * atan( ui->cameraWidth->value() *
ui->cameraPixelSizeW->value() / (2 * ui->TLength2->value()));
double fov_y = (60*180 / M_PI) * 2 * atan( ui->cameraHeight->value() *
ui->cameraPixelSizeH->value() / (2 * ui->TLength2->value()));

You can replace (60*180 / M_PI) * 2 by 6875.5. There is no need to use dozen of
decimals…

I haven’t checked if the fov is calculated elsewhere.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to