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, sendManufacturerMessage, sendPageRequest

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


17512
17513
# File 'Monkeybrains.rb', line 17512

def initialize(listener)
end

Instance Method Details

getCalculatedCadenceToybox::AntPlus::CalculatedCadence

Get the current calculated crank cadence.

Returns:

Since:

  • 2.2.0


17468
17469
# File 'Monkeybrains.rb', line 17468

def getCalculatedCadence()
end

getCalculatedPowerToybox::AntPlus::CalculatedPower

Retrieve the current calculated power.

Returns:

Since:

  • 2.2.0


17475
17476
# File 'Monkeybrains.rb', line 17475

def getCalculatedPower()
end

getCalculatedWheelDistanceToybox::AntPlus::CalculatedWheelDistance

Retrieve the current calculated wheel distance.

Returns:

Since:

  • 2.2.0


17482
17483
# File 'Monkeybrains.rb', line 17482

def getCalculatedWheelDistance()
end

getCalculatedWheelSpeedToybox::AntPlus::CalculatedWheelSpeed

Retrieve the current calculated wheel speed.

Returns:

Since:

  • 2.2.0


17489
17490
# File 'Monkeybrains.rb', line 17489

def getCalculatedWheelSpeed()
end

getPedalPowerBalanceToybox::AntPlus::PedalPowerBalance

Retrieve the current pedal power balance.

Returns:

Since:

  • 2.2.0


17496
17497
# File 'Monkeybrains.rb', line 17496

def getPedalPowerBalance()
end

getTorqueEffectivenessPedalSmoothnessToybox::AntPlus::TorqueEffectivenessPedalSmoothness

Retrieve the current torque effectiveness and pedal smoothness.

Returns:

Since:

  • 2.2.0


17503
17504
# File 'Monkeybrains.rb', line 17503

def getTorqueEffectivenessPedalSmoothness()
end