Class: Toybox::AntPlus::SimulationSettings

Inherits:
Lang::Object show all

Overview

Represents the wind and track simulation training mode settings on the fitness equipment. Fields may return null so you should null check values before using them. Values that have not yet been set will return invalid.

Since:

  • 2.4.0

Fitness Equipment Training Setting Type collapse

Method Summary

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Attribute Details

draftFactorToybox::Lang::Float

The simulated draft factor setting for simulation mode A draft factor of 0 removes all wind resistance, and 1.0 indicates no drafting effects.

Returns:

Since:

  • 2.4.0


18010
18011
18012
# File 'Monkeybrains.rb', line 18010

def draftFactor
  @draftFactor
end

slopeToybox::Lang::Float

The slope (grade) setting of the simulated track

Returns:

Since:

  • 2.4.0


17980
17981
17982
# File 'Monkeybrains.rb', line 17980

def slope
  @slope
end

surfaceResistanceToybox::Lang::Float

The simulated surface resistance coefficient for simulation mode. Dimensionless factor to quantify rolling resistance based on friction between bicycle tires and the tracker surface. Rolling Resistance [N] = (Bicycle Mass + Cyclist Mass) x Coefficient of Rolling Resistance x 9.8 Sample coefficents: Wooden track = 0.001 Smooth Concrete = 0.002 Asphalt Road = 0.004 Rough Road = 0.008

Returns:

Since:

  • 2.4.0


18004
18005
18006
# File 'Monkeybrains.rb', line 18004

def surfaceResistance
  @surfaceResistance
end

windResistanceToybox::Lang::Float

The simulated wind resistance coefficient setting for simulation mode Wind Resistance Coefficient [kg/m] = Frontal Surface Area [m2] x Drag Coefficient x Air Density [kg/m3]

Returns:

Since:

  • 2.4.0


17991
17992
17993
# File 'Monkeybrains.rb', line 17991

def windResistance
  @windResistance
end

windSpeedToybox::Lang::Float

The simulated wind speed setting for simulation mode

Returns:

Since:

  • 2.4.0


17985
17986
17987
# File 'Monkeybrains.rb', line 17985

def windSpeed
  @windSpeed
end