コード例 #1
0
        public void Update(double timestamp)
        {
            //NOTE: Timestamp will be ignored...

            pm.LowResolutionUpdate(); //throws PMUSBInterface.PMUSBException

            Cadence      = pm.SPM;
            Calories     = pm.Calories;
            Distance     = pm.Distance;
            ExerciseTime = pm.Worktime;
            Heartrate    = pm.Heartrate;
            PaceInSecs   = (uint)pm.Pace;
            Power        = pm.Power;
            RecentPace   = 500.0 / (Distance / ExerciseTime); //this is not recent, but total. It's the easiest way to calc something usable with what we've got.
        }