private void UpdateTelemetry(ITelemetry07 telemetry)
        {
            const int maxErrors = 3; // TODO: extract common constant for all telemetry updateables

            if (telemetry == null && _errorCounts < maxErrors)
            {
                return;
            }
            Parameter01Vm.UpdateTelemetry(telemetry?.Mcw);
        }
Beispiel #2
0
        private void UpdateTelemetry(ITelemetry08 telemetry)
        {
            Parameter01Vm.UpdateTelemetry(telemetry?.Msw);
            Parameter02Vm.UpdateTelemetry(telemetry?.Asw);

            Parameter03Vm.CurrentValue = telemetry?.EngineState;
            Parameter04Vm.CurrentValue = telemetry?.FollowMsw;
            Parameter05Vm.CurrentValue = telemetry?.FollowAsw;

            Parameter06Vm.CurrentValue = telemetry?.FollowEngineState;
        }
        private void UpdateTelemetry(ITelemetry09 telemetry)
        {
            const int maxErrors = 3;

            if (telemetry == null && _errorCounts < maxErrors)
            {
                return;
            }

            Parameter01Vm.UpdateTelemetry(telemetry?.Status1);
            Parameter02Vm.UpdateTelemetry(_ainsCounter.SelectedAinsCount >= 2 ? telemetry?.Status2 : null);
            Parameter03Vm.UpdateTelemetry(_ainsCounter.SelectedAinsCount >= 3 ? telemetry?.Status3 : null);

            Parameter04Vm.CurrentValue = telemetry?.FaultState;
            Parameter05Vm.CurrentValue = telemetry?.Warning;
            Parameter06Vm.CurrentValue = telemetry?.ErrLinkAin;
            Parameter06Vm.CurrentValue = telemetry?.FollowStatus;
        }