Class: Toybox::AntPlus::BikePower

Inherits:
Device show all

Overview

Represents a Bike Power Device instance.

Examples:

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

See Also:

Since:

  • 2.2.0

Bike Power Sensor Type collapse

Methods inherited from Device

getBatteryStatus, getComponentIdentifiers, getDeviceState, getManufacturerInfo, getProductInfo

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initialize(listener) ⇒ BikePower

The Constructor for the BikePower object. 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.

Parameters:

Since:

  • 2.2.0



15153
15154
# File 'Monkeybrains.rb', line 15153

def initialize(listener)
end

Instance Method Details

getCalculatedCadenceToybox::AntPlus::CalculatedCadence

Get the current calculated crank cadence.

Returns:

Since:

  • 2.2.0



15109
15110
# File 'Monkeybrains.rb', line 15109

def getCalculatedCadence()
end

getCalculatedPowerToybox::AntPlus::CalculatedPower

Retrieve the current calculated power.

Returns:

Since:

  • 2.2.0



15116
15117
# File 'Monkeybrains.rb', line 15116

def getCalculatedPower()
end

getCalculatedWheelDistanceToybox::AntPlus::CalculatedWheelDistance

Retrieve the current calculated wheel distance.

Returns:

Since:

  • 2.2.0



15123
15124
# File 'Monkeybrains.rb', line 15123

def getCalculatedWheelDistance()
end

getCalculatedWheelSpeedToybox::AntPlus::CalculatedWheelSpeed

Retrieve the current calculated wheel speed.

Returns:

Since:

  • 2.2.0



15130
15131
# File 'Monkeybrains.rb', line 15130

def getCalculatedWheelSpeed()
end

getPedalPowerBalanceToybox::AntPlus::PedalPowerBalance

Retrieve the current pedal power balance.

Returns:

Since:

  • 2.2.0



15137
15138
# File 'Monkeybrains.rb', line 15137

def getPedalPowerBalance()
end

getTorqueEffectivenessPedalSmoothnessToybox::AntPlus::TorqueEffectivenessPedalSmoothness

Retrieve the current torque effectiveness and pedal smoothness.

Returns:

Since:

  • 2.2.0



15144
15145
# File 'Monkeybrains.rb', line 15144

def getTorqueEffectivenessPedalSmoothness()
end