16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 13:39:18 +02:00

Merge branch 'tmj-dev'

This commit is contained in:
milek7
2018-02-16 15:25:53 +01:00
113 changed files with 4617 additions and 4057 deletions

View File

@@ -235,6 +235,11 @@ double TGauge::GetValue() const {
return ( fValue - fOffset ) / fScale;
}
double TGauge::GetDesiredValue() const {
// we feed value in range 0-1 so we should be getting it reported in the same range
return ( fDesiredValue - fOffset ) / fScale;
}
void TGauge::Update() {
if( fValue != fDesiredValue ) {