subsurface/backend-shared
jan Iversen b6b514ea86 planner: correct rating calculations.
Test show that the ratings calculations were off by +/- 1, due
to rounding errors. Found due to test cases in tests (other commits)

The calculations are copied 1-1 from diveplanner.cpp, but are
used slightly different in plannerShared.cpp

Correct calculations, by securing the calculation is done
with float precision and the rounded with lrint().

Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-28 06:53:12 +09:00
..
CMakeLists.txt build-system: move plannerShared to backend-shared 2019-12-24 08:44:23 +09:00
exportfuncs.cpp build-system: move exportfuncs to backend-shared 2019-12-24 08:44:23 +09:00
exportfuncs.h build-system: move exportfuncs to backend-shared 2019-12-24 08:44:23 +09:00
plannershared.cpp planner: correct rating calculations. 2019-12-28 06:53:12 +09:00
plannershared.h plannerShared: add notes variables 2019-12-26 09:59:19 -08:00
README build-system: add new root dir backend-shared 2019-12-24 08:44:23 +09:00

This directory contains shared UI backend code shared between
the desktop version and the mobile version.

The backend code sits between the actual functionality, which
are implemented in core and qt-models, and the UI/QML which
are implemented in desktop-widgets and mobile-widgets.

The idea of backend is not to duplicate code, and at the same time
limit the UI and QML to only deal with real GUI.

The first implementations for backend are "export" and "diveplanner".