Class: Toybox::AntPlus::TorqueEffectivenessPedalSmoothness

Inherits:
Lang::Object
  • Object
show all

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:

  • 2.2.0

Bike Power Sensor Type collapse

Method Summary

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Attribute Details

leftOrCombinedPedalSmoothnessToybox::Lang::Float

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

Examples:

using Toybox.AntPlus;
using Toybox.System;

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

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

Returns:

Since:

  • 2.2.0


15634
15635
15636
# File 'Monkeybrains.rb', line 15634

def leftOrCombinedPedalSmoothness
  @leftOrCombinedPedalSmoothness
end

leftTorqueEffectivenessToybox::Lang::Float

Left torque effectiveness.

0xFF: Invalid or negative values (%).

Examples:

using Toybox.AntPlus;
using Toybox.System;

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

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

Returns:

Since:

  • 2.2.0


15590
15591
15592
# File 'Monkeybrains.rb', line 15590

def leftTorqueEffectiveness
  @leftTorqueEffectiveness
end

rightPedalSmoothnessToybox::Lang::Float

Right pedal smoothness (%).

Examples:

using Toybox.AntPlus;
using Toybox.System;

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

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

Returns:

Since:

  • 2.2.0


15647
15648
15649
# File 'Monkeybrains.rb', line 15647

def rightPedalSmoothness
  @rightPedalSmoothness
end

rightTorqueEffectivenessToybox::Lang::Float

Right torque effectiveness.

0xFF: Invalid or negative values (%).

Examples:

using Toybox.AntPlus;
using Toybox.System;

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

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

Returns:

Since:

  • 2.2.0


15605
15606
15607
# File 'Monkeybrains.rb', line 15605

def rightTorqueEffectiveness
  @rightTorqueEffectiveness
end

separatePedalSmoothnessSupportToybox::Lang::Boolean

Define if pedal smoothness is separate.

Examples:

using Toybox.AntPlus;
using Toybox.System;

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

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

Returns:

Since:

  • 2.2.0


15620
15621
15622
# File 'Monkeybrains.rb', line 15620

def separatePedalSmoothnessSupport
  @separatePedalSmoothnessSupport
end