Class AntPlusFitnessEquipmentPcc.CalibrationResponse

java.lang.Object
com.dsi.ant.plugins.antplus.pcc.AntPlusFitnessEquipmentPcc.CalibrationResponse
All Implemented Interfaces:
android.os.Parcelable
Enclosing class:
AntPlusFitnessEquipmentPcc

public static class AntPlusFitnessEquipmentPcc.CalibrationResponse extends Object implements android.os.Parcelable
Response from the fitness equipment after it completes calibration. This is an optional data page as many fitness equipment units do not require calibration.
Since:
2.1.8
  • Field Details

    • KEY_DEFAULT_CALIBRATIONRESPONSEKEY

      public static final String KEY_DEFAULT_CALIBRATIONRESPONSEKEY
      Default IPC key
      See Also:
    • temperature

      public BigDecimal temperature
      The fitness equipment may set this field to indicate its temperature or null.

      Units: C
      Valid range: -25C - +100C
      Resolution: 0.5C

    • zeroOffset

      public Integer zeroOffset
      The fitness equipment should set this field to indicate its zero offset if a zero offset calibration was requested, otherwise it shall be set to null.

      Units: none
      Valid range: 0 - 65534
      Resolution: 1

    • spinDownTime

      public Integer spinDownTime
      Some trainers use spin-down time to calibrate the resistance applied by the trainer. This is typically done by requesting the user to pedal at a known speed and then remove their feet from the pedals. The time required for the rear bike wheel and/or trainer roller to stop spinning is known as the spin-down time. The fitness equipment should set this field to indicate its spin-down calibration time if a spin-down calibration was requested, otherwise it shall be set to null.

      Units: ms
      Valid range: 0ms - 65534ms
      Resolution: 1ms

    • zeroOffsetCalibrationSuccess

      public boolean zeroOffsetCalibrationSuccess
      Zero offset calibration completed successfully if true. Failure or not attempted if false.
    • spinDownCalibrationSuccess

      public boolean spinDownCalibrationSuccess
      Spin down calibration completed successfully if true. Failure or not attempted if false.
    • CREATOR

      public static final android.os.Parcelable.Creator<AntPlusFitnessEquipmentPcc.CalibrationResponse> CREATOR
      CREATOR is used by Android parceling system.
  • Constructor Details

    • CalibrationResponse

      public CalibrationResponse()
      Creates a calibration response object. User code should not have to reference this constructor.
    • CalibrationResponse

      public CalibrationResponse(android.os.Parcel in)
      Parcel constructor
      Parameters:
      in - Parcel with object data
  • Method Details

    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable