serial port input device configuration, additional control commands and minor control logic tweaks

This commit is contained in:
tmj-fstate
2018-02-10 19:53:21 +01:00
parent e9c4714780
commit 0c880f3d4e
16 changed files with 1437 additions and 897 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 ) {