Package com.dsi.ant.plugins.antplus.pcc
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
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<AntPlusFitnessEquipmentPcc.CalibrationResponse>
CREATOR is used by Android parceling system.static final String
Default IPC keyboolean
Spin down calibration completed successfully if true.Some trainers use spin-down time to calibrate the resistance applied by the trainer.The fitness equipment may set this field to indicate its temperature or null.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.boolean
Zero offset calibration completed successfully if true.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a calibration response object.CalibrationResponse
(android.os.Parcel in) Parcel constructor -
Method Summary
-
Field Details
-
KEY_DEFAULT_CALIBRATIONRESPONSEKEY
Default IPC key- See Also:
-
temperature
The fitness equipment may set this field to indicate its temperature or null.Units: C
Valid range: -25C - +100C
Resolution: 0.5C -
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
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 zeroOffsetCalibrationSuccessZero offset calibration completed successfully if true. Failure or not attempted if false. -
spinDownCalibrationSuccess
public boolean spinDownCalibrationSuccessSpin down calibration completed successfully if true. Failure or not attempted if false. -
CREATOR
public static final android.os.Parcelable.Creator<AntPlusFitnessEquipmentPcc.CalibrationResponse> CREATORCREATOR 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 interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-