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


15566
15567
15568
# File 'Monkeybrains.rb', line 15566

def pedalPowerPercent
  @pedalPowerPercent
end

rightPedalIndicatorToybox::Lang::Boolean

Indicates the pedal contribution.

Returns:

Since:

  • 2.2.0


15561
15562
15563
# File 'Monkeybrains.rb', line 15561

def rightPedalIndicator
  @rightPedalIndicator
end