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


16281
16282
16283
# File 'Monkeybrains.rb', line 16281

def draftFactor
  @draftFactor
end

slopeToybox::Lang::Float

The slope (grade) setting of the simulated track

Returns:

Since:

  • 2.4.0


16251
16252
16253
# File 'Monkeybrains.rb', line 16251

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


16275
16276
16277
# File 'Monkeybrains.rb', line 16275

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


16262
16263
16264
# File 'Monkeybrains.rb', line 16262

def windResistance
  @windResistance
end

windSpeedToybox::Lang::Float

The simulated wind speed setting for simulation mode

Returns:

Since:

  • 2.4.0


16256
16257
16258
# File 'Monkeybrains.rb', line 16256

def windSpeed
  @windSpeed
end