Ejemplo n.º 1
0
 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();
 }