Skip to content

Commit

Permalink
Bug fix: radian and degree
Browse files Browse the repository at this point in the history
Clean up useless gui files

Consistent project file
  • Loading branch information
chengxinlun committed Jul 5, 2017
1 parent e667b8d commit 7acd8b6
Show file tree
Hide file tree
Showing 72 changed files with 95 additions and 20,057 deletions.
2 changes: 1 addition & 1 deletion src/core/modules/SensorsMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void SensorsMgr::update(double deltaTime)

rot2d(&x, &y, -roll);
rot2d(&y, &z, pitch);
float az = std::atan2(-x, z) - magd; // Magnetic declination correction (Cheng Xinlun, Apr 18, 2017)
float az = std::atan2(-x, z) - magd * 0.0174533; // Magnetic declination correction (Cheng Xinlun, Apr 18, 2017)
StelUtils::spheToRect(az, pitch, viewDirection);
mmgr->setViewDirectionJ2000(StelApp::getInstance().getCore()->altAzToJ2000(viewDirection));
}
Expand Down
245 changes: 0 additions & 245 deletions src/gui/AddRemoveLandscapesDialog.cpp

This file was deleted.

81 changes: 0 additions & 81 deletions src/gui/AddRemoveLandscapesDialog.hpp

This file was deleted.

Loading

0 comments on commit 7acd8b6

Please sign in to comment.