Пример #1
0
        void InitBP(int channelNumber)
        {
            AntManagerState.Instance.TripTotalKm = 0;
            var channelCad       = usbDevice.getChannel(channelNumber);
            var bikePowerDisplay = new BikePowerDisplay(channelCad, network);

            bpCommander = new BPCommander(bikePowerDisplay);
            bpCommander.Start();
        }
Пример #2
0
        void InitBP(int channelNumber)
        {
            Int32 deviceNumber = Int32.Parse(ConfigurationManager.AppSettings["bike_power_device"]);

            if (deviceNumber < 0)
            {
                return;
            }
            var channelCad       = usbDevice.getChannel(channelNumber);
            var bikePowerDisplay = new BikePowerDisplay(channelCad, network);

            bpCommander = new BPCommander(bikePowerDisplay, (UInt16)deviceNumber);
            bpCommander.Start();
        }