Class: Toybox.AntPlus.PedalPowerBalance

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.

Example:

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:

API Level 2.2.0

Supported Devices:

Instance Member Summary collapse

Instance Attribute Details

var pedalPowerPercent as Lang.Number or Null

Pedal power percent (%)

Since:

API Level 2.2.0

Returns:

var rightPedalIndicator as Lang.Boolean or Null

Indicates the pedal contribution.

Since:

API Level 2.2.0

Returns:

  • Lang.Boolean
    • true if right pedal contribution

    • false if unknown pedal contribution


Generated Sep 23, 2024, 3:32:48 PM