コード例 #1
0
        public async Task GetStaticFoxStatusAsync(OnGetStaticFoxStatusDelegate onGetStaticFoxStatus)
        {
            _onGetStaticFoxStatus = onGetStaticFoxStatus ?? throw new ArgumentNullException(nameof(onGetStaticFoxStatus));

            _isFoxArmedCommand.SetResponseDelegate(OnIsFoxArmedResponse);
            _isFoxArmedCommand.SendIsFoxArmedCommand();
        }
コード例 #2
0
        private async Task OnGetAntennaMatchingStatusAsync
        (
            AntennaMatchingStatus status,
            bool isNewForApp,
            int totalMatcherPositions,
            int currentMatcherPosition,
            float currentAntennaVoltage,
            int currentBestMatchPosition,
            float currentBestMatchVoltage
        )
        {
            _statusToLoad.AntennaMatchingStatus.Status                   = status;
            _statusToLoad.AntennaMatchingStatus.IsNewForApp              = isNewForApp;
            _statusToLoad.AntennaMatchingStatus.TotalMatcherPositions    = totalMatcherPositions;
            _statusToLoad.AntennaMatchingStatus.CurrentMatcherPosition   = currentMatcherPosition;
            _statusToLoad.AntennaMatchingStatus.CurrentVoltage           = currentAntennaVoltage;
            _statusToLoad.AntennaMatchingStatus.CurrentBestMatchPosition = currentBestMatchPosition;
            _statusToLoad.AntennaMatchingStatus.CurrentBestMatchVoltage  = currentBestMatchVoltage;

            _isFoxArmedCommand.SetResponseDelegate(async(ia) => await OnIsFoxArmedResponseAsync(ia));
            _isFoxArmedCommand.SendIsFoxArmedCommand();
        }