Class: Toybox.AntPlus.BikePower

Overview

Represents a Bike Power Device instance.

See Also:

Example:

using Toybox.AntPlus;

// Assuming Valid BikePowerListener object "MyBikePowerListener"

// Initialize the AntPlus.BikePowerListener object
listener = new MyBikePowerListener();

// Initialize the AntPlus.BikePower object with a listener
bikePower = new AntPlus.BikePower(listener);

var calculatedPower = bikePower.getCalculatedCadence();
var calculatedPower = bikePower.getCalculatedPower();

// ...etc

Since:

API Level 2.2.0

Supported Devices:

Instance Method Summary collapse

Instance Method Details

getCalculatedCadence() as AntPlus.CalculatedCadence

Get the current calculated crank cadence.

Returns:

Since:

API Level 2.2.0

getCalculatedPower() as AntPlus.CalculatedPower

Retrieve the current calculated power.

Returns:

Since:

API Level 2.2.0

getCalculatedWheelDistance() as AntPlus.CalculatedWheelDistance

Retrieve the current calculated wheel distance.

Returns:

Since:

API Level 2.2.0

getCalculatedWheelSpeed() as AntPlus.CalculatedWheelSpeed

Retrieve the current calculated wheel speed.

Returns:

Since:

API Level 2.2.0

getPedalPowerBalance() as AntPlus.PedalPowerBalance

Retrieve the current pedal power balance.

Returns:

Since:

API Level 2.2.0

getTorqueEffectivenessPedalSmoothness() as AntPlus.TorqueEffectivenessPedalSmoothness

Retrieve the current torque effectiveness and pedal smoothness.

Returns:

Since:

API Level 2.2.0

initialize(listener as AntPlus.BikePowerListener or Null)

Constructor

Parameters:

  • listener(AntPlus.BikePowerListener)

    The bike power instance optionally takes an extension of the BikePowerListener class as a parameter. null can be passed in instead if the user plans to only poll for data using the getCalculated* methods.

Since:

API Level 2.2.0


Generated Jun 6, 2024 10:31:51 AM