Class: Toybox::AntPlus::PedalPowerBalance

Inherits:
Lang::Object show all

Overview

The PedalPowerBalance object represents the user's power contribution between the left and right pedals.

Fields may return null so you should null check values before using them.

Examples:

using Toybox.AntPlus;
using Toybox.System;

// Assumes AntPlus.BikePower.getPedalPowerBalance(); already called
var pedalPowerPercent = PedalPowerBalance.pedalPowerPercent;
var rightPedalIndicator = PedalPowerBalance.rightPedalIndicator;

System.println("Current pedalPowerPercent is: " + pedalPowerPercent);
System.println("rightPedalIndicator is set to: " + rightPedalIndicator);

Since:

  • 2.2.0

Bike Power Sensor Type collapse

Method Summary

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Attribute Details

pedalPowerPercentToybox::Lang::Number

Pedal power percent (%)

Returns:

Since:

  • 2.2.0


17332
17333
17334
# File 'Monkeybrains.rb', line 17332

def pedalPowerPercent
  @pedalPowerPercent
end

rightPedalIndicatorToybox::Lang::Boolean

Indicates the pedal contribution.

Returns:

Since:

  • 2.2.0


17327
17328
17329
# File 'Monkeybrains.rb', line 17327

def rightPedalIndicator
  @rightPedalIndicator
end