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 StringDefault 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 TypeMethodDescriptionintReturns theAntPlusBikePowerPcc.CrankLengthStatusof the power meter.Returns theAntPlusBikePowerPcc.CustomCalibrationStatusof 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.SensorAvailabilityStatusof the power meter.Returns theAntPlusBikePowerPcc.SensorSoftwareMismatchStatusof the power meter.booleanIndicates if the power meter is capable of automatically determining crank length.voidwriteToParcel(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.CrankLengthStatusof the power meter.sensorSoftwareMismatchStatus- TheAntPlusBikePowerPcc.SensorSoftwareMismatchStatusof the power meter.sensorAvailabilityStatus- TheAntPlusBikePowerPcc.SensorAvailabilityStatusof the power meter.customCalibrationStatus- TheAntPlusBikePowerPcc.CustomCalibrationStatusof 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:
writeToParcelin interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()- Specified by:
describeContentsin 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.CrankLengthStatusof the power meter.- Returns:
- The
AntPlusBikePowerPcc.CrankLengthStatusof the power meter.
-
getSensorSoftwareMismatchStatus
Returns theAntPlusBikePowerPcc.SensorSoftwareMismatchStatusof the power meter.- Returns:
- The
AntPlusBikePowerPcc.SensorSoftwareMismatchStatusof the power meter.
-
getSensorAvailabilityStatus
Returns theAntPlusBikePowerPcc.SensorAvailabilityStatusof the power meter.- Returns:
- The
AntPlusBikePowerPcc.SensorAvailabilityStatusof the power meter.
-
getCustomCalibrationStatus
Returns theAntPlusBikePowerPcc.CustomCalibrationStatusof the power meter, indicating if custom calibration is required.- Returns:
- The
AntPlusBikePowerPcc.CustomCalibrationStatusof 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.
-