Package com.dsi.ant.plugins.antplus.pcc
Class AntPlusBikePowerPcc.CrankParameters
java.lang.Object
com.dsi.ant.plugins.antplus.pcc.AntPlusBikePowerPcc.CrankParameters
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- AntPlusBikePowerPcc
public static class AntPlusBikePowerPcc.CrankParameters
extends Object
implements android.os.Parcelable
The crank parameters sent by the power meter.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<AntPlusBikePowerPcc.CrankParameters>
CREATOR is used by Android parceling system.static final String
Default IPC keyFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionCrankParameters
(android.os.Parcel in) Parcel constructorCrankParameters
(BigDecimal fullCrankLength, AntPlusBikePowerPcc.CrankLengthStatus crankLengthStatus, AntPlusBikePowerPcc.SensorSoftwareMismatchStatus sensorSoftwareMismatchStatus, AntPlusBikePowerPcc.SensorAvailabilityStatus sensorAvailabilityStatus, AntPlusBikePowerPcc.CustomCalibrationStatus customCalibrationStatus, boolean autoCrankLengthSupport) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns theAntPlusBikePowerPcc.CrankLengthStatus
of the power meter.Returns theAntPlusBikePowerPcc.CustomCalibrationStatus
of the power meter, indicating if custom calibration is required.Returns the crank length value set in the power meter (up to 0.5mm resolution).Returns theAntPlusBikePowerPcc.SensorAvailabilityStatus
of the power meter.Returns theAntPlusBikePowerPcc.SensorSoftwareMismatchStatus
of the power meter.boolean
Indicates if the power meter is capable of automatically determining crank length.void
writeToParcel
(android.os.Parcel dest, int flags)
-
Field Details
-
KEY_DEFAULT_CRANKPARAMETERSKEY
Default IPC key- See Also:
-
CREATOR
CREATOR is used by Android parceling system.
-
-
Constructor Details
-
CrankParameters
public CrankParameters(BigDecimal fullCrankLength, AntPlusBikePowerPcc.CrankLengthStatus crankLengthStatus, AntPlusBikePowerPcc.SensorSoftwareMismatchStatus sensorSoftwareMismatchStatus, AntPlusBikePowerPcc.SensorAvailabilityStatus sensorAvailabilityStatus, AntPlusBikePowerPcc.CustomCalibrationStatus customCalibrationStatus, boolean autoCrankLengthSupport) - Parameters:
fullCrankLength
- The crank length value set in the power meter (up to 0.5mm resolution). Units: mm.crankLengthStatus
- TheAntPlusBikePowerPcc.CrankLengthStatus
of the power meter.sensorSoftwareMismatchStatus
- TheAntPlusBikePowerPcc.SensorSoftwareMismatchStatus
of the power meter.sensorAvailabilityStatus
- TheAntPlusBikePowerPcc.SensorAvailabilityStatus
of the power meter.customCalibrationStatus
- TheAntPlusBikePowerPcc.CustomCalibrationStatus
of the power meter, indicating if custom calibration is required.autoCrankLengthSupport
- Indicates if the power meter is capable of automatically determining crank length.
-
CrankParameters
public CrankParameters(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
-
getFullCrankLength
Returns the crank length value set in the power meter (up to 0.5mm resolution). Units: mm.- Returns:
- The crank length value set in the power meter (up to 0.5mm resolution). Units: mm.
-
getCrankLengthStatus
Returns theAntPlusBikePowerPcc.CrankLengthStatus
of the power meter.- Returns:
- The
AntPlusBikePowerPcc.CrankLengthStatus
of the power meter.
-
getSensorSoftwareMismatchStatus
Returns theAntPlusBikePowerPcc.SensorSoftwareMismatchStatus
of the power meter.- Returns:
- The
AntPlusBikePowerPcc.SensorSoftwareMismatchStatus
of the power meter.
-
getSensorAvailabilityStatus
Returns theAntPlusBikePowerPcc.SensorAvailabilityStatus
of the power meter.- Returns:
- The
AntPlusBikePowerPcc.SensorAvailabilityStatus
of the power meter.
-
getCustomCalibrationStatus
Returns theAntPlusBikePowerPcc.CustomCalibrationStatus
of the power meter, indicating if custom calibration is required.- Returns:
- The
AntPlusBikePowerPcc.CustomCalibrationStatus
of the power meter, indicating if custom calibration is required.
-
isAutoCrankLengthSupported
public boolean isAutoCrankLengthSupported()Indicates if the power meter is capable of automatically determining crank length.- Returns:
- If the power meter is capable of automatically determining crank length.
-