mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
serial port input device configuration, additional control commands and minor control logic tweaks
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user