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


17983
17984
17985
# File 'Monkeybrains.rb', line 17983

def draftFactor
  @draftFactor
end

slopeToybox::Lang::Float

The slope (grade) setting of the simulated track

Returns:

Since:

  • 2.4.0


17953
17954
17955
# File 'Monkeybrains.rb', line 17953

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


17977
17978
17979
# File 'Monkeybrains.rb', line 17977

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


17964
17965
17966
# File 'Monkeybrains.rb', line 17964

def windResistance
  @windResistance
end

windSpeedToybox::Lang::Float

The simulated wind speed setting for simulation mode

Returns:

Since:

  • 2.4.0


17958
17959
17960
# File 'Monkeybrains.rb', line 17958

def windSpeed
  @windSpeed
end