예제 #1
0
        void networkSampler_PacketSampled(object sender, IHRMPacket hrmPacket, byte?minHeartRate, byte?maxHeartRate)
        {
#if DEBUG
            System.Diagnostics.Debug.WriteLine("Sending HRM message");
#endif
            networkRelay.Send(new HeartRateMessage(hrmPacket.HeartRate, minHeartRate, maxHeartRate));
        }
예제 #2
0
 public HRMStatus(HeartRateMonitor hrm, IHRMPacket hrmPacket)
 {
     HeartRate    = hrm.LastPacket.HeartRate;
     MinHeartRate = hrm.MinHeartRate;
     MaxHeartRate = hrm.MaxHeartRate;
     TotalPackets = hrm.TotalPackets;
     HRMPacket    = hrmPacket;
 }
예제 #3
0
        public void Log(IHRMPacket hrmPacket)
        {
            BtHrpPacket btHrpPacket;

            if (hrmPacket is BtHrpPacket)
            {
                btHrpPacket = (BtHrpPacket)hrmPacket;
            }
            else
            {
                throw new Exception("Invalid IHRMPacket, BtHrpPacket expected");
            }

            BtHrpLog(btHrpPacket);
        }
예제 #4
0
        public void Log(IHRMPacket hrmPacket)
        {
            ZephyrPacket zephyrPacket;

            if (hrmPacket is ZephyrPacket)
            {
                zephyrPacket = (ZephyrPacket)hrmPacket;
            }
            else
            {
                throw new Exception("Invalid IHRMPacket, ZephyrPacket expected");
            }

            ZephyrLog(zephyrPacket);
        }
예제 #5
0
        public void Log(IHRMPacket hrmPacket)
        {
            HRMEmulatorPacket hrmEmulatorPacket;

            if (hrmPacket is HRMEmulatorPacket)
            {
                hrmEmulatorPacket = (HRMEmulatorPacket)hrmPacket;
            }
            else
            {
                throw new Exception("Invalid IHRMPacket, ZephyrPacket expected");
            }

            HRMEmulatorLog(hrmEmulatorPacket);
        }
예제 #6
0
        public void Log(IHRMPacket hrmPacket)
        {
            CMS50Packet cms50Packet;

            if (hrmPacket is CMS50Packet)
            {
                cms50Packet = (CMS50Packet)hrmPacket;
            }
            else
            {
                throw new Exception("Invalid IHRMPacket, CMS50Packet expected");
            }

            CMS50Log(cms50Packet);
        }
예제 #7
0
 public PacketProcessedEventArgs(IHRMPacket hrmPacket)
 {
     this.HRMPacket = hrmPacket;
 }