Exemple #1
0
 public FitDeviceInfo(DeviceInfoMesg msg)
 {
     AntDeviceNumber     = msg.GetAntDeviceNumber();
     AntDeviceType       = msg.GetAntDeviceType();
     AntNetwork          = msg.GetAntNetwork();
     AntplusDeviceType   = msg.GetAntplusDeviceType();
     AntTransmissionType = msg.GetAntTransmissionType();
     BatteryStatus       = msg.GetBatteryStatus();
     BatteryVoltage      = msg.GetBatteryVoltage();
     CumOperatingTime    = FitFile.GetTimeSpan(msg.GetCumOperatingTime());
     Descriptor          = msg.GetDescriptorAsString();
     DeviceIndex         = msg.GetDeviceIndex();
     DeviceType          = msg.GetDeviceType();
     FaveroProduct       = msg.GetFaveroProduct();
     GarminProduct       = msg.GetGarminProduct();
     HardwareVersion     = msg.GetHardwareVersion();
     Manufacturer        = msg.GetManufacturer();
     Product             = msg.GetProduct();
     ProductName         = msg.GetProductNameAsString();
     SensorPosition      = msg.GetSensorPosition();
     SerialNumber        = msg.GetSerialNumber();
     SoftwareVersion     = msg.GetSoftwareVersion();
     SourceType          = msg.GetSourceType();
     Timestamp           = FitFile.GetDateTime(msg.GetTimestamp());
 }
Exemple #2
0
 public FitActivity(ActivityMesg msg)
 {
     Event          = msg.GetEvent();
     EventGroup     = msg.GetEventGroup();
     EventType      = msg.GetEventType();
     LocalTimestamp = msg.GetLocalTimestamp();
     NumSessions    = msg.GetNumSessions();
     Timestamp      = FitFile.GetDateTime(msg.GetTimestamp());
     TotalTimerTime = FitFile.GetTimeSpan(msg.GetTotalTimerTime());
     Type           = msg.GetType();
 }
 public FitFileID(FileIdMesg msg)
 {
     FaveroProduct = msg.GetFaveroProduct();
     GarminProduct = msg.GetGarminProduct();
     Manufacturer  = msg.GetManufacturer();
     Number        = msg.GetNumber();
     ProductName   = msg.GetProductNameAsString();
     Product       = msg.GetProduct();
     SerialNumber  = msg.GetSerialNumber();
     CreationTime  = FitFile.GetDateTime(msg.GetTimeCreated());
     Type          = msg.GetType();
 }
Exemple #4
0
        public FitLength(LengthMesg msg, int first, int last)
        {
            FirstRecord = first;
            LastRecord  = last;

            AvgSwimmingCadence = msg.GetAvgSwimmingCadence();
            AvgSpeed           = FitFile.GetSpeed(msg.GetAvgSpeed());
            Event            = msg.GetEvent();
            EventGroup       = msg.GetEventGroup();
            EventType        = msg.GetEventType();
            LengthType       = msg.GetLengthType();
            OpponentScore    = msg.GetOpponentScore();
            PlayerScore      = msg.GetPlayerScore();
            StartTime        = FitFile.GetDateTime(msg.GetStartTime());
            StrokeCounts     = FitFile.GetUShortList(msg.GetNumStrokeCount(), msg.GetStrokeCount);
            SwimStroke       = msg.GetSwimStroke();
            Timestamp        = FitFile.GetDateTime(msg.GetTimestamp());
            TotalElapsedTime = FitFile.GetTimeSpan(msg.GetTotalElapsedTime());
            TotalTimerTime   = FitFile.GetTimeSpan(msg.GetTotalTimerTime());
            TotalCalories    = msg.GetTotalCalories();
            TotalStrokes     = msg.GetTotalStrokes();
            ZoneCounts       = FitFile.GetUShortList(msg.GetNumZoneCount(), msg.GetZoneCount);
        }
Exemple #5
0
        public FitLap(LapMesg msg, int first, int last)
        {
            FirstRecord = first;
            LastRecord  = last;

            AveAltitude                = msg.GetAvgAltitude();
            AveCadence                 = msg.GetAvgCadence();
            AveCadencePosition         = FitFile.GetByteList(msg.GetNumAvgCadencePosition(), msg.GetAvgCadencePosition);
            AveCombinedPedalSmoothness = msg.GetAvgCombinedPedalSmoothness();
            AveFractionalCadence       = msg.GetAvgFractionalCadence();
            AveGrade                      = msg.GetAvgGrade();
            AveHeartRate                  = msg.GetAvgHeartRate();
            AveLeftPco                    = msg.GetAvgLeftPco();
            AveLeftPedalSmoothness        = msg.GetAvgLeftPedalSmoothness();
            AveLeftPowerPhase             = FitFile.GetFloatList(msg.GetNumAvgLeftPowerPhase(), msg.GetAvgLeftPowerPhase);
            AveLeftPowerPhasePeak         = FitFile.GetFloatList(msg.GetNumAvgLeftPowerPhasePeak(), msg.GetAvgLeftPowerPhasePeak);
            AveLeftTorqueEffectiveness    = msg.GetAvgLeftTorqueEffectiveness();
            AveLevMotorPower              = msg.GetAvgLevMotorPower();
            AveNegGrade                   = msg.GetAvgNegGrade();
            AveNegVerticalSpeed           = msg.GetAvgNegVerticalSpeed();
            AvePosGrade                   = msg.GetAvgPosGrade();
            AvePosVerticalSpeed           = msg.GetAvgPosVerticalSpeed();
            AvePower                      = msg.GetAvgPower();
            AvePowerPosition              = FitFile.GetUShortList(msg.GetNumAvgPowerPosition(), msg.GetAvgPowerPosition);
            AveRightPco                   = msg.GetAvgRightPco();
            AveRightPedalSmoothness       = msg.GetAvgRightPedalSmoothness();
            AveRightPowerPhase            = FitFile.GetFloatList(msg.GetNumAvgRightPowerPhase(), msg.GetAvgRightPowerPhase);
            AveRightPowerPhasePeak        = FitFile.GetFloatList(msg.GetNumAvgRightPowerPhasePeak(), msg.GetAvgRightPowerPhasePeak);
            AveRightTorqueEffectiveness   = msg.GetAvgRightTorqueEffectiveness();
            AveRunningCadence             = msg.GetAvgRunningCadence();
            AveSaturatedHemoglobinPercent = FitFile.GetFloatList(msg.GetNumAvgSaturatedHemoglobinPercent(), msg.GetAvgSaturatedHemoglobinPercent);
            AveSpeed                      = FitFile.GetSpeed(msg.GetAvgSpeed());
            AveStanceTime                 = msg.GetAvgStanceTime();
            AveStanceTimeBalance          = msg.GetAvgStanceTimeBalance();
            AveStanceTimePercent          = msg.GetAvgStanceTimePercent();
            AveStepLength                 = msg.GetAvgStepLength();
            AveStrokeDistance             = msg.GetAvgStrokeDistance();
            AveTemperature                = msg.GetAvgTemperature();
            AveTotalHemoglobinConc        = FitFile.GetFloatList(msg.GetNumAvgTotalHemoglobinConc(), msg.GetAvgTotalHemoglobinConc);
            AvgVam = msg.GetAvgVam();
            AvgVerticalOscillation = msg.GetAvgVerticalOscillation();
            AvgVerticalRatio       = msg.GetAvgVerticalRatio();
            EndPositionLat         = FitFile.GetDegrees(msg.GetEndPositionLat());
            EndPositionLong        = FitFile.GetDegrees(msg.GetEndPositionLong());
            EnhancedAvgAltitude    = msg.GetEnhancedAvgAltitude();
            EnhancedAvgSpeed       = FitFile.GetSpeed(msg.GetEnhancedAvgSpeed());
            EnhancedMaxAltitude    = msg.GetEnhancedMaxAltitude();
            EnhancedMaxSpeed       = FitFile.GetSpeed(msg.GetEnhancedMaxSpeed());
            EnhancedMinAltitude    = msg.GetEnhancedMinAltitude();
            Event                         = msg.GetEvent();
            EventGroup                    = msg.GetEventGroup();
            EventType                     = msg.GetEventType();
            FirstLengthIndex              = msg.GetFirstLengthIndex();
            GpsAccuracy                   = msg.GetGpsAccuracy();
            Intensity                     = msg.GetIntensity();
            LapTrigger                    = msg.GetLapTrigger();
            LeftRightBalance              = msg.GetLeftRightBalance();
            LevBatteryConsumption         = msg.GetLevBatteryConsumption();
            MaxAltitude                   = msg.GetMaxAltitude();
            MaxCadence                    = msg.GetMaxCadence();
            MaxCadencePosition            = FitFile.GetByteList(msg.GetNumMaxCadencePosition(), msg.GetMaxCadencePosition);
            MaxFractionalCadence          = msg.GetMaxFractionalCadence();
            MaxHeartRate                  = msg.GetMaxHeartRate();
            MaxLevMotorPower              = msg.GetMaxLevMotorPower();
            MaxNegGrade                   = msg.GetMaxNegGrade();
            MaxNegVerticalSpeed           = msg.GetMaxNegVerticalSpeed();
            MaxPosGrade                   = msg.GetMaxPosGrade();
            MaxPosVerticalSpeed           = msg.GetMaxPosVerticalSpeed();
            MaxPower                      = msg.GetMaxPower();
            MaxPowerPosition              = FitFile.GetUShortList(msg.GetNumMaxPowerPosition(), msg.GetMaxPowerPosition);
            MaxRunningCadence             = msg.GetMaxRunningCadence();
            MaxSaturatedHemoglobinPercent = FitFile.GetFloatList(msg.GetNumMaxSaturatedHemoglobinPercent(), msg.GetMaxSaturatedHemoglobinPercent);
            MaxSpeed                      = FitFile.GetSpeed(msg.GetMaxSpeed());
            MaxTemperature                = msg.GetMaxTemperature();
            MaxTotalHemoglobinConc        = FitFile.GetFloatList(msg.GetNumMaxTotalHemoglobinConc(), msg.GetMaxTotalHemoglobinConc);
            MinAltitude                   = msg.GetMinAltitude();
            MinHeartRate                  = msg.GetMinHeartRate();
            MinSaturatedHemoglobinPercent = FitFile.GetFloatList(msg.GetNumMinSaturatedHemoglobinPercent(), msg.GetMinSaturatedHemoglobinPercent);
            MinTotalHemoglobinConc        = FitFile.GetFloatList(msg.GetNumMinTotalHemoglobinConc(), msg.GetMinTotalHemoglobinConc);
            NormalizedPower               = msg.GetNormalizedPower();
            NumActiveLengths              = msg.GetNumActiveLengths();
            NumLengths                    = msg.GetNumLengths();
            OpponentScore                 = msg.GetOpponentScore();
            PlayerScore                   = msg.GetPlayerScore();
            RepetitionNum                 = msg.GetRepetitionNum();
            Sport                         = msg.GetSport();
            StandCount                    = msg.GetStandCount();
            StartPositionLat              = FitFile.GetDegrees(msg.GetStartPositionLat());
            StartPositionLong             = FitFile.GetDegrees(msg.GetStartPositionLong());
            StartTime                     = FitFile.GetDateTime(msg.GetStartTime());
            StrokeCounts                  = FitFile.GetUShortList(msg.GetNumStrokeCount(), msg.GetStrokeCount);
            SubSport                      = msg.GetSubSport();
            SwimStroke                    = msg.GetSwimStroke();
            TimeInCadenceZone             = FitFile.GetFloatList(msg.GetNumTimeInCadenceZone(), msg.GetTimeInCadenceZone);
            TimeInHrZone                  = FitFile.GetFloatList(msg.GetNumTimeInHrZone(), msg.GetTimeInHrZone);
            TimeInPowerZone               = FitFile.GetFloatList(msg.GetNumTimeInPowerZone(), msg.GetTimeInPowerZone);
            TimeInSpeedZone               = FitFile.GetFloatList(msg.GetNumTimeInSpeedZone(), msg.GetTimeInSpeedZone);
            Timestamp                     = FitFile.GetDateTime(msg.GetTimestamp());
            TimeStanding                  = msg.GetTimeStanding();
            TotalAscent                   = msg.GetTotalAscent();
            TotalCalories                 = msg.GetTotalCalories();
            TotalCycles                   = msg.GetTotalCycles();
            TotalDescent                  = msg.GetTotalDescent();
            TotalDistance                 = FitFile.GetDistance(msg.GetTotalDistance());
            TotalElapsedTime              = FitFile.GetTimeSpan(msg.GetTotalElapsedTime());
            TotalFatCalories              = msg.GetTotalFatCalories();
            TotalFractionalCycles         = msg.GetTotalFractionalCycles();
            TotalMovingTime               = FitFile.GetTimeSpan(msg.GetTotalMovingTime());
            TotalStrides                  = msg.GetTotalStrides();
            TotalTimerTime                = FitFile.GetTimeSpan(msg.GetTotalTimerTime());
            TotalWork                     = FitFile.GetWork(msg.GetTotalWork());
            WktStepIndex                  = msg.GetWktStepIndex();
            ZoneCounts                    = FitFile.GetUShortList(msg.GetNumZoneCount(), msg.GetZoneCount);
        }
 public FitRecord(RecordMesg msg, FitRecordList records)
 {
     AbsolutePressure           = msg.GetAbsolutePressure();
     AccumulatedPower           = msg.GetAccumulatedPower();
     ActivityType               = msg.GetActivityType();
     Altitude                   = msg.GetAltitude();
     BallSpeed                  = FitFile.GetSpeed(msg.GetBallSpeed());
     BatterySoc                 = msg.GetBatterySoc();
     Cadence256                 = msg.GetCadence256();
     Cadence                    = msg.GetCadence();
     Calories                   = msg.GetCalories();
     CnsLoad                    = msg.GetCnsLoad();
     CombinedPedalSmoothness    = msg.GetCombinedPedalSmoothness();
     CompressedAccumulatedPower = msg.GetCompressedAccumulatedPower();
     CompressedSpeedDistance    = FitFile.GetByteList(msg.GetNumCompressedSpeedDistance(), msg.GetCompressedSpeedDistance);
     CycleLength                = msg.GetCycleLength();
     Cycles                        = msg.GetCycles();
     Depth                         = msg.GetDepth();
     DeviceIndex                   = msg.GetDeviceIndex();
     Distance                      = FitFile.GetDistance(msg.GetDistance());
     EnhancedAltitude              = msg.GetEnhancedAltitude();
     EnhancedSpeed                 = FitFile.GetSpeed(msg.GetEnhancedSpeed());
     FractionalCadence             = msg.GetFractionalCadence();
     GpsAccuracy                   = msg.GetGpsAccuracy();
     Grade                         = msg.GetGrade();
     HeartRate                     = msg.GetHeartRate();
     LeftPco                       = msg.GetLeftPco();
     LeftPedalSmoothness           = msg.GetLeftPedalSmoothness();
     LeftPowerPhase                = FitFile.GetFloatList(msg.GetNumLeftPowerPhase(), msg.GetLeftPowerPhase);
     LeftPowerPhasePeak            = FitFile.GetFloatList(msg.GetNumLeftPowerPhasePeak(), msg.GetLeftPowerPhasePeak);
     LeftRightBalance              = msg.GetLeftRightBalance();
     LeftTorqueEffectiveness       = msg.GetLeftTorqueEffectiveness();
     MotorPower                    = msg.GetMotorPower();
     N2Load                        = msg.GetN2Load();
     NdlTime                       = msg.GetNdlTime();
     NextStopDepth                 = msg.GetNextStopDepth();
     NextStopTime                  = msg.GetNextStopTime();
     Latitude                      = FitFile.GetDegrees(msg.GetPositionLat());
     Longitude                     = FitFile.GetDegrees(msg.GetPositionLong());
     Power                         = msg.GetPower();
     Resistence                    = msg.GetResistance();
     RightPco                      = msg.GetRightPco();
     RightPedalSmoothness          = msg.GetRightPedalSmoothness();
     RightPowerPhase               = FitFile.GetFloatList(msg.GetNumRightPowerPhase(), msg.GetRightPowerPhase);
     RightPowerPhasePeak           = FitFile.GetFloatList(msg.GetNumRightPowerPhasePeak(), msg.GetRightPowerPhasePeak);
     RightTorqueEffectiveness      = msg.GetRightTorqueEffectiveness();
     SaturatedHemoglobinPercent    = msg.GetSaturatedHemoglobinPercent();
     SaturatedHemoglobinPercentMax = msg.GetSaturatedHemoglobinPercentMax();
     SaturatedHemoglobinPercentMin = msg.GetSaturatedHemoglobinPercentMin();
     Speed                         = FitFile.GetSpeed(msg.GetSpeed());
     Speed1s                       = FitFile.GetFloatList(msg.GetNumSpeed1s(), msg.GetSpeed1s);
     StanceTime                    = msg.GetStanceTime();
     StanceTimeBalance             = msg.GetStanceTimeBalance();
     StanceTimePercent             = msg.GetStanceTimePercent();
     StepLength                    = msg.GetStepLength();
     StrokeType                    = msg.GetStrokeType();
     Temperature                   = msg.GetTemperature();
     Time128                       = msg.GetTime128();
     TimeFromCourse                = FitFile.GetTimeSpan(msg.GetTimeFromCourse());
     Timestamp                     = FitFile.GetDateTime(msg.GetTimestamp());
     TotalCycles                   = msg.GetTotalCycles();
     TotalHemoglobinConc           = msg.GetTotalHemoglobinConc();
     TotalHemoglobinConcMax        = msg.GetTotalHemoglobinConcMax();
     TotalHemoglobinConcMin        = msg.GetTotalHemoglobinConcMin();
     VerticalOscillation           = msg.GetVerticalOscillation();
     VerticalRatio                 = msg.GetVerticalRatio();
     VerticalSpeed                 = FitFile.GetSpeed(msg.GetVerticalSpeed());
     Zone = msg.GetZone();
 }