Class: Toybox.AntPlus.TorqueEffectivenessPedalSmoothness

Overview

The TorqueEffectivenessPedalSmoothness object represents the instantaneous torque effectiveness and pedal smoothness.

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

Since:

API Level 2.2.0

Supported Devices:

Instance Member Summary collapse

Instance Attribute Details

var leftOrCombinedPedalSmoothness as Lang.Float or Null

Left pedal smoothness if separate is supported, else it is the combined smoothness (%).

Example:

using Toybox.AntPlus;
using Toybox.System;

// Assumes AntPlus.BikePower.getTorqueEffectivenessPedalSmoothness(); already called
var leftOrCombinedPedalSmoothness= TorqueEffectivenessPedalSmoothness.leftOrCombinedPedalSmoothness;

System.println("leftOrCombinedPedalSmoothness is set to: " + leftOrCombinedPedalSmoothness);

Since:

API Level 2.2.0

Returns:

var leftTorqueEffectiveness as Lang.Float or Null

Left torque effectiveness.

0xFF: Invalid or negative values (%).

Example:

using Toybox.AntPlus;
using Toybox.System;

// Assumes AntPlus.BikePower.getTorqueEffectivenessPedalSmoothness(); already called
var leftTorqueEffectiveness = TorqueEffectivenessPedalSmoothness.leftTorqueEffectiveness;

System.println("leftTorqueEffectiveness is: " + leftTorqueEffectiveness);

Since:

API Level 2.2.0

Returns:

var rightPedalSmoothness as Lang.Float or Null

Right pedal smoothness (%).

Example:

using Toybox.AntPlus;
using Toybox.System;

// Assumes AntPlus.BikePower.getTorqueEffectivenessPedalSmoothness(); already called
var rightPedalSmoothness = TorqueEffectivenessPedalSmoothness.rightPedalSmoothness;

System.println("rightPedalSmoothness is: " + rightPedalSmoothness);

Since:

API Level 2.2.0

Returns:

var rightTorqueEffectiveness as Lang.Float or Null

Right torque effectiveness.

0xFF: Invalid or negative values (%).

Example:

using Toybox.AntPlus;
using Toybox.System;

// Assumes AntPlus.BikePower.getTorqueEffectivenessPedalSmoothness(); already called
var rightTorqueEffectiveness= TorqueEffectivenessPedalSmoothness.rightTorqueEffectiveness;

System.println("rightTorqueEffectiveness is set to: " + rightTorqueEffectiveness);

Since:

API Level 2.2.0

Returns:

var separatePedalSmoothnessSupport as Lang.Boolean or Null

Define if pedal smoothness is separate.

Example:

using Toybox.AntPlus;
using Toybox.System;

// Assumes AntPlus.BikePower.getTorqueEffectivenessPedalSmoothness(); already called
var separatePedalSmoothnessSupport = TorqueEffectivenessPedalSmoothness.separatePedalSmoothnessSupport;

System.println("separatePedalSmoothnessSupport is: " + separatePedalSmoothnessSupport);

Since:

API Level 2.2.0

Returns:

  • Lang.Boolean
    • true if pedal smoothness is separate

    • false if combined


Generated Dec 11, 2024, 8:58:42 AM