Пример #1
0
        static OnMov200Schemas()
        {
            USER = USER.AddByte("gender")
                   .AddByte("age")
                   .AddByte("height")
                   .AddByte("weight")
                   .AddByte("hrRest")
                   .AddByte("hrMax")
                   .AddReserved("userReserved", 14);

            OMH = OMH.AddLong("distance")
                  .AddInt("duration")
                  .AddFloat2("avgSpeed")
                  .AddFloat2("maxSpeed")
                  .AddInt("Cal")
                  .AddByte("avgHR")
                  .AddByte("maxHR")
                  .AddByte("year")
                  .AddByte("month")
                  .AddByte("day")
                  .AddByte("hour")
                  .AddByte("min")
                  .AddByte("activityId")

                  .AddInt("pointsCount")
                  .AddByte("indoor")
                  .AddByte("hrSensor")
                  .AddInt("D+")
                  .AddInt("D-")
                  .AddByte("sportType")
                  .AddReserved("r", 9)
                  .AddByte("activityId2")
                  .AddByte("dataId");

            OMD_GPS.AddLong("latitude") //0
            .AddLong("longitude")       //4
            .AddLong("distance")        //8
            .AddInt("stopwatch")        //12
            .AddByte("gpsStatus")       // 14
            .AddReserved("r", 4)        // 15
            .AddByte("dataId");         //19

            OMD_CURVE.AddInt("stopwatch")
            .AddFloat2("speed")
            .AddInt("kcal")
            .AddByte("hr")
            .AddByte("lap")
            .AddByte("cad")
            .AddByte("padByte")
            .AddInt("stopwatch2")
            .AddFloat2("speed2")
            .AddInt("kcal2")
            .AddByte("hr2")
            .AddByte("lap2")
            .AddByte("cad2")
            .AddByte("dataId");
        }