public class AntPlusBikePowerPcc extends AntPlusCommonPcc
Modifier and Type | Class and Description |
---|---|
static class |
AntPlusBikePowerPcc.AutoZeroStatus
The Auto-Zero status code.
|
static class |
AntPlusBikePowerPcc.CalculatedWheelDistanceReceiver
Receiver for the CalculatedWheelDistance event, which is:
The accumulated calculated distance traveled.
|
static class |
AntPlusBikePowerPcc.CalculatedWheelSpeedReceiver
Receiver for the CalculatedWheelSpeed event, which is:
The average speed between two received messages calculated from the best available data from the power sensor.
|
static class |
AntPlusBikePowerPcc.CalibrationId
The calibration response code.
|
static class |
AntPlusBikePowerPcc.CalibrationMessage
The calibration data sent by the power sensor.
|
static class |
AntPlusBikePowerPcc.CrankLengthSetting
The crank length setting.
|
static class |
AntPlusBikePowerPcc.CrankLengthStatus
The crank length status sent by the power meter.
|
static class |
AntPlusBikePowerPcc.CrankParameters
The crank parameters sent by the power meter.
|
static class |
AntPlusBikePowerPcc.CustomCalibrationStatus
If the sensor requires custom calibration.
|
static class |
AntPlusBikePowerPcc.DataSource
The data source code.
|
static interface |
AntPlusBikePowerPcc.IAutoZeroStatusReceiver
Receiver for the AutoZeroStatus event, which is:
The updated Auto Zero status of the sensor.
|
static interface |
AntPlusBikePowerPcc.ICalculatedCrankCadenceReceiver
Receiver for the CalculatedCrankCadence event, which is:
The average cadence between two received messages calculated from the bet available data from the power sensor.
|
static interface |
AntPlusBikePowerPcc.ICalculatedPowerReceiver
Receiver for the CalculatedPower event, which is:
The average power between two received messages calculated from the best available data from the power sensor.
|
static interface |
AntPlusBikePowerPcc.ICalculatedTorqueReceiver
Receiver for the CalculatedTorque event, which is:
The average torque between two received messages calculated from the best available data from the power sensor.
|
static interface |
AntPlusBikePowerPcc.ICalibrationMessageReceiver
Receiver for the CalibrationMessage event, which is:
Response data from the power meter when calibration occurs (either by request or automatically performed by the power meter) or is confering current calibration status.
|
static interface |
AntPlusBikePowerPcc.ICrankParametersReceiver
Receiver for the CrankParameters event, which is:
The power meter returned the requested crank parameters.
|
static interface |
AntPlusBikePowerPcc.IInstantaneousCadenceReceiver
Receiver for the InstantaneousCadence event, which is:
The instantaneous cadence data.
|
static interface |
AntPlusBikePowerPcc.IMeasurementOutputDataReceiver
Receiver for the MeasurementOutputData event, which is:
Data sent by power meters intended to enrich the calibration process.
|
class |
AntPlusBikePowerPcc.IpcDefines
Defines the keys and values used to communicate between the PCC and plugin.
|
static interface |
AntPlusBikePowerPcc.IPedalPowerBalanceReceiver
Receiver for the PedalPowerBalance event, which is:
The pedal power data field provides the user's power contribution (as a percentage) between the left and right pedals, as measured by a pedal power sensor.
|
static interface |
AntPlusBikePowerPcc.IPedalSmoothnessReceiver
Receiver for the PedalSmoothness event, which is:
The instantaneous values of left and right, or combined, Pedal Smoothness from the sensor.
|
static interface |
AntPlusBikePowerPcc.IRawCrankTorqueDataReceiver
Receiver for the RawCrankTorqueData event, which is:
Event timing information and torque values from a power sensor that measures torque at the crank.
|
static interface |
AntPlusBikePowerPcc.IRawCtfDataReceiver
Receiver for the RawCtfData event, which is:
Event timing information and crank torque values from a power sensor reported as frequency instead.
|
static interface |
AntPlusBikePowerPcc.IRawPowerOnlyDataReceiver
Receiver for the RawPowerOnlyData event, which is:
The basic power data calculated by the sensor itself.
|
static interface |
AntPlusBikePowerPcc.IRawWheelTorqueDataReceiver
Receiver for the RawWheelTorqueData event, which is:
Event timing information and torque values from a power sensor that measures torque on the rear wheel.
|
static interface |
AntPlusBikePowerPcc.ITorqueEffectivenessReceiver
Receiver for the TorqueEffectiveness event, which is:
The instantaneous values of left and right Torque Effectiveness from the sensor.
|
static class |
AntPlusBikePowerPcc.MeasurementDataType
The measurement data type sent by the power meter during calibration.
|
static class |
AntPlusBikePowerPcc.SensorAvailabilityStatus
The availability of sensors for the power meter.
|
static class |
AntPlusBikePowerPcc.SensorSoftwareMismatchStatus
The status of the sensor software on left/right sensors.
|
AntPlusCommonPcc.CommonDataPage, AntPlusCommonPcc.IBatteryStatusReceiver, AntPlusCommonPcc.IManufacturerIdentificationReceiver, AntPlusCommonPcc.IManufacturerSpecificDataReceiver, AntPlusCommonPcc.IProductInformationReceiver, AntPlusCommonPcc.IRequestFinishedReceiver, AntPlusCommonPcc.IRssiReceiver
AntPluginPcc.IDeviceStateChangeReceiver, AntPluginPcc.IPluginAccessResultReceiver<T extends AntPluginPcc>
PATH_ANTPLUS_PLUGINS_PKG
Modifier and Type | Method and Description |
---|---|
static PccReleaseHandle<AntPlusBikePowerPcc> |
requestAccess(Activity userActivity,
Context bindToContext,
AntPluginPcc.IPluginAccessResultReceiver<AntPlusBikePowerPcc> resultReceiver,
AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
Sends a request to the plugin to access a device and receive a live PCC instance.
|
static PccReleaseHandle<AntPlusBikePowerPcc> |
requestAccess(Activity userActivity,
Context bindToContext,
boolean skipPreferredSearch,
int searchProximityThreshold,
AntPluginPcc.IPluginAccessResultReceiver<AntPlusBikePowerPcc> resultReceiver,
AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
Sends a request to the plugin to access a device and receive a live PCC instance.
|
static PccReleaseHandle<AntPlusBikePowerPcc> |
requestAccess(Context bindToContext,
int antDeviceNumber,
int searchProximityThreshold,
AntPluginPcc.IPluginAccessResultReceiver<AntPlusBikePowerPcc> resultReceiver,
AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
Sends a request to the plugin to access a device and receive a live PCC instance.
|
static AsyncScanController<AntPlusBikePowerPcc> |
requestAsyncScanController(Context bindToContext,
int searchProximityThreshold,
AsyncScanController.IAsyncScanResultReceiver scanResultReceiver)
Sends a request to the plugin to start an asynchronous search for available devices.
|
boolean |
requestCommandBurst(int requestedCommandId,
byte[] commandData,
AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
Request to issue a command to the master device.
|
boolean |
requestCrankParameters(AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
Send a request to the power meter to get the crank parameters.
|
boolean |
requestCrankParameters(AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver,
AntPlusBikePowerPcc.ICrankParametersReceiver crankParametersReceiver)
Send a request to the power meter to get the crank parameters.
|
boolean |
requestCustomCalibrationParameters(byte[] manufacturerSpecificParameters,
AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
Send a request to the power meter to send custom calibration parameters.
|
boolean |
requestCustomCalibrationParameters(byte[] manufacturerSpecificParameters,
AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver,
AntPlusBikePowerPcc.ICalibrationMessageReceiver calibrationMessageReceiver)
Send a request to the power meter to send custom calibration parameters.
|
boolean |
requestManualCalibration(AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
Send a request to the power meter to perform a manual calibration.
|
boolean |
requestManualCalibration(AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver,
AntPlusBikePowerPcc.ICalibrationMessageReceiver calibrationMessageReceiver,
AntPlusBikePowerPcc.IMeasurementOutputDataReceiver measurementOutputDataReceiver)
Send a request to the power meter to perform a manual calibration.
|
boolean |
requestSetAutoZero(boolean autoZeroEnable,
AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
Send a request to the power meter to configure auto-zero calibration.
|
boolean |
requestSetAutoZero(boolean autoZeroEnable,
AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver,
AntPlusBikePowerPcc.ICalibrationMessageReceiver calibrationMessageReceiver,
AntPlusBikePowerPcc.IAutoZeroStatusReceiver autoZeroStatusReceiver)
Send a request to the power meter to configure auto-zero calibration.
|
boolean |
requestSetCrankParameters(AntPlusBikePowerPcc.CrankLengthSetting crankLengthSetting,
java.math.BigDecimal fullCrankLength,
AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
Send a request to the power meter to set the crank parameters.
|
boolean |
requestSetCtfSlope(java.math.BigDecimal slope,
AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
Send a request to the CTF power meter to configure slope.
|
boolean |
requestSetCtfSlope(java.math.BigDecimal slope,
AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver,
AntPlusBikePowerPcc.ICalibrationMessageReceiver calibrationMessageReceiver)
Send a request to the CTF power meter to configure slope.
|
boolean |
requestSetCustomCalibrationParameters(byte[] manufacturerSpecificParameters,
AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
Send a request to the power meter to set custom calibration parameters.
|
boolean |
requestSetCustomCalibrationParameters(byte[] manufacturerSpecificParameters,
AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver,
AntPlusBikePowerPcc.ICalibrationMessageReceiver calibrationMessageReceiver)
Send a request to the power meter to set custom calibration parameters.
|
void |
subscribeAutoZeroStatusEvent(AntPlusBikePowerPcc.IAutoZeroStatusReceiver autoZeroStatusReceiver)
Subscribe to receive AutoZeroStatus events, which contain:
The updated Auto Zero status of the sensor.
|
void |
subscribeCalculatedCrankCadenceEvent(AntPlusBikePowerPcc.ICalculatedCrankCadenceReceiver CalculatedCrankCadenceReceiver)
Subscribe to receive CalculatedCrankCadence events, which contain:
The average cadence between two received messages calculated from the bet available data from the power sensor.
|
void |
subscribeCalculatedPowerEvent(AntPlusBikePowerPcc.ICalculatedPowerReceiver CalculatedPowerReceiver)
Subscribe to receive CalculatedPower events, which contain:
The average power between two received messages calculated from the best available data from the power sensor.
|
void |
subscribeCalculatedTorqueEvent(AntPlusBikePowerPcc.ICalculatedTorqueReceiver CalculatedTorqueReceiver)
Subscribe to receive CalculatedTorque events, which contain:
The average torque between two received messages calculated from the best available data from the power sensor.
|
void |
subscribeCalculatedWheelDistanceEvent(AntPlusBikePowerPcc.CalculatedWheelDistanceReceiver CalculatedWheelDistanceReceiver)
Subscribe to receive CalculatedWheelDistance events, which contain:
The distance travelled between two received messages calculated from the best available data from the power sensor.
|
void |
subscribeCalculatedWheelSpeedEvent(AntPlusBikePowerPcc.CalculatedWheelSpeedReceiver CalculatedWheelSpeedReceiver)
Subscribe to receive CalculatedWheelSpeed events, which contain:
The average speed between two received messages calculated from the best available data from the power sensor.
|
void |
subscribeCalibrationMessageEvent(AntPlusBikePowerPcc.ICalibrationMessageReceiver calibrationMessageReceiver)
Subscribe to receive CalibrationMessage events, which contain:
Response data from the power meter when calibration occurs (either by request or automatically performed by the power meter) or is confering current calibration status.
|
void |
subscribeCrankParametersEvent(AntPlusBikePowerPcc.ICrankParametersReceiver crankParametersReceiver)
Subscribe to receive CrankParameters events, which contain:
The power meter returned the requested crank parameters.
|
void |
subscribeInstantaneousCadenceEvent(AntPlusBikePowerPcc.IInstantaneousCadenceReceiver InstantaneousCadenceReceiver)
Subscribe to receive InstantaneousCadence events, which contain:
The instantaneous cadence data.
|
void |
subscribeMeasurementOutputDataEvent(AntPlusBikePowerPcc.IMeasurementOutputDataReceiver measurementOutputDataReceiver)
Subscribe to receive MeasurementOutputData events, which contain:
Data sent by power meters intended to enrich the calibration process.
|
void |
subscribePedalPowerBalanceEvent(AntPlusBikePowerPcc.IPedalPowerBalanceReceiver PedalPowerBalanceReceiver)
Subscribe to receive PedalPowerBalance events, which contain:
The pedal power data field provides the user's power contribution (as a percentage) between the left and right pedals, as measured by a pedal power sensor.
|
void |
subscribePedalSmoothnessEvent(AntPlusBikePowerPcc.IPedalSmoothnessReceiver PedalSmoothnessReceiver)
Subscribe to receive PedalSmoothness events, which contain:
The instantaneous values of left and right, or combined, Pedal Smoothness from the sensor.
|
void |
subscribeRawCrankTorqueDataEvent(AntPlusBikePowerPcc.IRawCrankTorqueDataReceiver RawCrankTorqueDataReceiver)
Subscribe to receive RawCrankTorqueData events, which contain:
Event timing information and torque values from a power sensor that measures torque at the crank.
|
void |
subscribeRawCtfDataEvent(AntPlusBikePowerPcc.IRawCtfDataReceiver RawCtfDataReceiver)
Subscribe to receive RawCtfData events, which contain:
Event timing information and crank torque values from a power sensor reported as frequency instead.
|
void |
subscribeRawPowerOnlyDataEvent(AntPlusBikePowerPcc.IRawPowerOnlyDataReceiver RawPowerOnlyDataReceiver)
Subscribe to receive RawPowerOnlyData events, which contain:
The basic power data calculated by the sensor itself.
|
void |
subscribeRawWheelTorqueDataEvent(AntPlusBikePowerPcc.IRawWheelTorqueDataReceiver RawWheelTorqueDataReceiver)
Subscribe to receive RawWheelTorqueData events, which contain:
Event timing information and torque values from a power sensor that measures torque on the rear wheel.
|
void |
subscribeTorqueEffectivenessEvent(AntPlusBikePowerPcc.ITorqueEffectivenessReceiver TorqueEffectivenessReceiver)
Subscribe to receive TorqueEffectiveness events, which contain:
The instantaneous values of left and right Torque Effectiveness from the sensor.
|
requestCommonDataPage, subscribeBatteryStatusEvent, subscribeManufacturerIdentificationEvent, subscribeManufacturerSpecificDataEvent, subscribeProductInformationEvent, subscribeRssiEvent, supportsRssi
getAntDeviceNumber, getCurrentDeviceState, getDeviceName, getInstalledPluginsVersionNumber, getInstalledPluginsVersionString, getMissingDependencyName, getMissingDependencyPackageName, isUserPreferredDeviceForPlugin, isUserRecognizedDevice, releaseAccess, startPluginManagerActivity
public static PccReleaseHandle<AntPlusBikePowerPcc> requestAccess(Activity userActivity, Context bindToContext, boolean skipPreferredSearch, int searchProximityThreshold, AntPluginPcc.IPluginAccessResultReceiver<AntPlusBikePowerPcc> resultReceiver, AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
userActivity
- The current foreground activity. Used to display search progress and results.bindToContext
- The context to which the plugin will be bound. Used for plugin lifecycle management.skipPreferredSearch
- True = Don't automatically connect to user's preferred device, but always go to search for other devices.searchProximityThreshold
- It is recommended to always use -1 to use the user's default settings unless your application
has a specific reason to do otherwise. This value represents the signal strength 'proximity' requirement on finding matches
during searching, if a device does not meet the requirements it will not show up in the search at all.
The value is a generic signal strength threshold from 1-10 where 1 is the strongest (ie: closest) and 10 is the lowest(ie: farthest away).
0 = don't use proximity search and -1 = use plugin user-specified default.resultReceiver
- The receiver to receive the results of the request. Possible returns include:
stateReceiver
- The receiver to receive the state updates of the accessed device, assuming the request is successful.
This receiver will receive notifications of all state changes to the device that occur subsequent
to the initial state returned in the result receiver.public static PccReleaseHandle<AntPlusBikePowerPcc> requestAccess(Activity userActivity, Context bindToContext, AntPluginPcc.IPluginAccessResultReceiver<AntPlusBikePowerPcc> resultReceiver, AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
#requestAccess(Activity, Context, boolean, int, IPluginAccessResultReceiver, IDeviceStateChangeReceiver)
with skipPreferrredSearch=false and searchProximityThreshold=-1(user default).
userActivity
- The current foreground activity. Used to display search progress and results.bindToContext
- The context to which the plugin will be bound. Used for plugin lifecycle management.resultReceiver
- The receiver to receive the results of the request. Possible returns include:
stateReceiver
- The receiver to receive the state updates of the accessed device, assuming the request is successful.
This receiver will receive notifications of all state changes to the device that occur subsequent
to the initial state returned in the result receiver.public static PccReleaseHandle<AntPlusBikePowerPcc> requestAccess(Context bindToContext, int antDeviceNumber, int searchProximityThreshold, AntPluginPcc.IPluginAccessResultReceiver<AntPlusBikePowerPcc> resultReceiver, AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
bindToContext
- The context to which the plugin will be bound. Used for plugin lifecycle management.antDeviceNumber
- DeviceNumber to attempt to connect to. A deviceNumber of 0 indicates a desire to connect to first available device.searchProximityThreshold
- This value represents the signal strength 'proximity' requirement on finding matches
during searching, if a device does not meet the requirements it will not show up in the search at all.
The value is a generic signal strength threshold from 1-10 where 1 is the strongest (ie: closest) and 10 is the lowest(ie: farthest away).
0 = don't use proximity search.resultReceiver
- The receiver to receive the results of the request. Possible returns include:
stateReceiver
- The receiver to receive the state updates of the accessed device, assuming the request is successful.
This receiver will receive notifications of all state changes to the device that occur subsequent
to the initial state returned in the result receiver.public static AsyncScanController<AntPlusBikePowerPcc> requestAsyncScanController(Context bindToContext, int searchProximityThreshold, AsyncScanController.IAsyncScanResultReceiver scanResultReceiver)
AsyncScanController
.bindToContext
- The context to which the plugin will be bound. Used for plugin lifecycle management.searchProximityThreshold
- This value represents the signal strength 'proximity' requirement on finding matches
during searching, if a device does not meet the requirements it will not show up in the search at all.
The value is a generic signal strength rating from 1-10 where 1 is the strongest (ie: closest) and 10 is the lowest(ie: farthest away).
0 = don't use proximity search.scanResultReceiver
- The receiver to receive the info for available devices and status of the scan.AsyncScanController
.public void subscribeRawPowerOnlyDataEvent(AntPlusBikePowerPcc.IRawPowerOnlyDataReceiver RawPowerOnlyDataReceiver)
RawPowerOnlyDataReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribePedalPowerBalanceEvent(AntPlusBikePowerPcc.IPedalPowerBalanceReceiver PedalPowerBalanceReceiver)
PedalPowerBalanceReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeInstantaneousCadenceEvent(AntPlusBikePowerPcc.IInstantaneousCadenceReceiver InstantaneousCadenceReceiver)
AntPlusBikePowerPcc.DataSource.POWER_ONLY_DATA
will only be sent if it is the only AntPlusBikePowerPcc.DataSource
available. This data is optional and may not be sent by all sensors.
This function can also be used to unsubscribe from an event, by passing null as the receiver.InstantaneousCadenceReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeRawWheelTorqueDataEvent(AntPlusBikePowerPcc.IRawWheelTorqueDataReceiver RawWheelTorqueDataReceiver)
RawWheelTorqueDataReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeRawCrankTorqueDataEvent(AntPlusBikePowerPcc.IRawCrankTorqueDataReceiver RawCrankTorqueDataReceiver)
RawCrankTorqueDataReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeTorqueEffectivenessEvent(AntPlusBikePowerPcc.ITorqueEffectivenessReceiver TorqueEffectivenessReceiver)
TorqueEffectivenessReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribePedalSmoothnessEvent(AntPlusBikePowerPcc.IPedalSmoothnessReceiver PedalSmoothnessReceiver)
PedalSmoothnessReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeRawCtfDataEvent(AntPlusBikePowerPcc.IRawCtfDataReceiver RawCtfDataReceiver)
RawCtfDataReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeCalibrationMessageEvent(AntPlusBikePowerPcc.ICalibrationMessageReceiver calibrationMessageReceiver)
calibrationMessageReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeAutoZeroStatusEvent(AntPlusBikePowerPcc.IAutoZeroStatusReceiver autoZeroStatusReceiver)
autoZeroStatusReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeCalculatedPowerEvent(AntPlusBikePowerPcc.ICalculatedPowerReceiver CalculatedPowerReceiver)
CalculatedPowerReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeCalculatedTorqueEvent(AntPlusBikePowerPcc.ICalculatedTorqueReceiver CalculatedTorqueReceiver)
CalculatedTorqueReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeCalculatedCrankCadenceEvent(AntPlusBikePowerPcc.ICalculatedCrankCadenceReceiver CalculatedCrankCadenceReceiver)
CalculatedCrankCadenceReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeCalculatedWheelSpeedEvent(AntPlusBikePowerPcc.CalculatedWheelSpeedReceiver CalculatedWheelSpeedReceiver)
CalculatedWheelSpeedReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeCalculatedWheelDistanceEvent(AntPlusBikePowerPcc.CalculatedWheelDistanceReceiver CalculatedWheelDistanceReceiver)
CalculatedWheelDistanceReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeMeasurementOutputDataEvent(AntPlusBikePowerPcc.IMeasurementOutputDataReceiver measurementOutputDataReceiver)
measurementOutputDataReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeCrankParametersEvent(AntPlusBikePowerPcc.ICrankParametersReceiver crankParametersReceiver)
crankParametersReceiver
- receiver to receive events (or null to unsubscribe from this event).public boolean requestManualCalibration(AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
requestFinishedReceiver
- Receiver for the results of the command request.#requestManualCalibration(IRequestFinishedReceiver, ICalibrationMessageReceiver, IMeasurementOutputDataReceiver)
public boolean requestManualCalibration(AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver, AntPlusBikePowerPcc.ICalibrationMessageReceiver calibrationMessageReceiver, AntPlusBikePowerPcc.IMeasurementOutputDataReceiver measurementOutputDataReceiver)
requestFinishedReceiver
- Receiver for the results of the command request.calibrationMessageReceiver
- Receiver for the calibration message. Any receiver passed here will overwrite any pre-existing receiver subscription, except from subscribeCalibrationMessageEvent(com.dsi.ant.plugins.antplus.pcc.AntPlusBikePowerPcc.ICalibrationMessageReceiver)
.measurementOutputDataReceiver
- Receiver for measurement output data during the calibration. Any receiver passed here will overwrite any pre-existing receiver subscription, except from subscribeMeasurementOutputDataEvent(com.dsi.ant.plugins.antplus.pcc.AntPlusBikePowerPcc.IMeasurementOutputDataReceiver)
.public boolean requestSetAutoZero(boolean autoZeroEnable, AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
autoZeroEnable
- Enable/disable auto-zero calibration on the power meter.requestFinishedReceiver
- Receiver for the results of the command request.* @return True if request was submitted successfully and you are guaranteed a result on the result receiver.#requestSetAutoZero(boolean, IRequestFinishedReceiver, ICalibrationMessageReceiver, IAutoZeroStatusReceiver)
public boolean requestSetAutoZero(boolean autoZeroEnable, AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver, AntPlusBikePowerPcc.ICalibrationMessageReceiver calibrationMessageReceiver, AntPlusBikePowerPcc.IAutoZeroStatusReceiver autoZeroStatusReceiver)
autoZeroEnable
- Enable/disable auto-zero calibration on the power meter.requestFinishedReceiver
- Receiver for the results of the command request.calibrationMessageReceiver
- Receiver for the calibration message. Any receiver passed here will overwrite any pre-existing receiver subscription, except from subscribeCalibrationMessageEvent(com.dsi.ant.plugins.antplus.pcc.AntPlusBikePowerPcc.ICalibrationMessageReceiver)
.autoZeroStatusReceiver
- Receiver for the auto zero status. Any receiver passed here will overwrite any pre-existing receiver subscription, except from subscribeAutoZeroStatusEvent(com.dsi.ant.plugins.antplus.pcc.AntPlusBikePowerPcc.IAutoZeroStatusReceiver)
.public boolean requestSetCtfSlope(java.math.BigDecimal slope, AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
slope
- The slope value to configure to the CTF power meter.requestFinishedReceiver
- Receiver for the results of the command request. RequestStatus.FAIL_BAD_PARAMS
Returned when slope is not within a range of 10.0Nm/Hz - 50.0Nm/Hz.}#requestSetCtfSlope(BigDecimal, IRequestFinishedReceiver, ICalibrationMessageReceiver)
public boolean requestSetCtfSlope(java.math.BigDecimal slope, AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver, AntPlusBikePowerPcc.ICalibrationMessageReceiver calibrationMessageReceiver)
slope
- The slope value to configure to the CTF power meter.requestFinishedReceiver
- Receiver for the results of the command request. RequestStatus.FAIL_BAD_PARAMS
Returned when slope is not within a range of 10.0Nm/Hz - 50.0Nm/Hz.calibrationMessageReceiver
- Receiver for the calibration message. Any receiver passed here will overwrite any pre-existing receiver subscription, except from subscribeCalibrationMessageEvent(com.dsi.ant.plugins.antplus.pcc.AntPlusBikePowerPcc.ICalibrationMessageReceiver)
.public boolean requestCustomCalibrationParameters(byte[] manufacturerSpecificParameters, AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
manufacturerSpecificParameters
- The six manufacturer specific bytes to be sent to the power meter.requestFinishedReceiver
- Receiver for the results of the command request. RequestStatus.FAIL_BAD_PARAMS
Returned when the length of manufacturerSpecificParameters is not 6.#requestCustomCalibrationParameters(byte[], IRequestFinishedReceiver, ICalibrationMessageReceiver)
public boolean requestCustomCalibrationParameters(byte[] manufacturerSpecificParameters, AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver, AntPlusBikePowerPcc.ICalibrationMessageReceiver calibrationMessageReceiver)
manufacturerSpecificParameters
- The six manufacturer specific bytes to be sent to the power meter.requestFinishedReceiver
- Receiver for the results of the command request. RequestStatus.FAIL_BAD_PARAMS
Returned when the length of manufacturerSpecificParameters is not 6.calibrationMessageReceiver
- Receiver for the calibration message. Any receiver passed here will overwrite any pre-existing receiver subscription, except from subscribeCalibrationMessageEvent(com.dsi.ant.plugins.antplus.pcc.AntPlusBikePowerPcc.ICalibrationMessageReceiver)
.public boolean requestSetCustomCalibrationParameters(byte[] manufacturerSpecificParameters, AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
manufacturerSpecificParameters
- The six manufacturer specific bytes to be sent to the power meter. RequestStatus.FAIL_BAD_PARAMS
Returned when the length of manufacturerSpecificParameters is not 6.requestFinishedReceiver
- Receiver for the results of the command request.#requestSetCustomCalibrationParameters(byte[], IRequestFinishedReceiver, ICalibrationMessageReceiver)
public boolean requestSetCustomCalibrationParameters(byte[] manufacturerSpecificParameters, AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver, AntPlusBikePowerPcc.ICalibrationMessageReceiver calibrationMessageReceiver)
manufacturerSpecificParameters
- The six manufacturer specific bytes to be sent to the power meter.requestFinishedReceiver
- Receiver for the results of the command request. RequestStatus.FAIL_BAD_PARAMS
Returned when the length of manufacturerSpecificParameters is not 6.calibrationMessageReceiver
- Receiver for the calibration message. Any receiver passed here will overwrite any pre-existing receiver subscription, except from subscribeCalibrationMessageEvent(com.dsi.ant.plugins.antplus.pcc.AntPlusBikePowerPcc.ICalibrationMessageReceiver)
.public boolean requestCrankParameters(AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
requestFinishedReceiver
- Receiver for the results of the command request.#requestCrankParameters(IRequestFinishedReceiver, ICrankParametersReceiver)
public boolean requestCrankParameters(AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver, AntPlusBikePowerPcc.ICrankParametersReceiver crankParametersReceiver)
requestFinishedReceiver
- Receiver for the results of the command request.crankParametersReceiver
- Receiver for the crank parameters. Any receiver passed here will overwrite any pre-existing receiver subscription, except from subscribeCrankParametersEvent(ICrankParametersReceiver)
.public boolean requestSetCrankParameters(AntPlusBikePowerPcc.CrankLengthSetting crankLengthSetting, java.math.BigDecimal fullCrankLength, AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
crankLengthSetting
- The AntPlusBikePowerPcc.CrankLengthSetting
to be sent to the power meter. Must not be set to NULL.fullCrankLength
- A valid crank length to set to the power meter. Set to NULL if not intending to set this value.requestFinishedReceiver
- Receiver for the results of the command request. RequestStatus.FAIL_BAD_PARAMS
Returned when crankLengthSetting is set to NULL, or if fullCrankLength is set to NULL when CrankLengthSetting is set to MANUAL_CRANK_LENGTH, of if fullCrankLength exceeds 236.5mm or if fullCrankLength falls below 110.0mm.public boolean requestCommandBurst(int requestedCommandId, byte[] commandData, AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
requestedCommandId
- The command ID to send to the master device.commandData
- The command data to be sent with the burst tranfer. The length must be a non-zero multiple of 8 bytes.requestFinishedReceiver
- Receiver for the results of the command request. RequestStatus.FAIL_BAD_PARAMS
Returned if requestedCommandId is outside a range of 0-255, or if commandData length is not a non-zero multiple of 8.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.