Class: Toybox.AntPlus.SimulationSettings

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:

API Level 2.4.0

Supported Devices:

Instance Member Summary collapse

Instance Attribute Details

var draftFactor as Lang.Float or Null

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

Since:

API Level 2.4.0

Returns:

var slope as Lang.Float or Null

The slope (grade) setting of the simulated track

Since:

API Level 2.4.0

Returns:

  • Lang.Float

    -200% - +200% range, invalid 0xFFFF

var surfaceResistance as Lang.Float or Null

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 coefficients: Wooden track = 0.001 Smooth Concrete = 0.002 Asphalt Road = 0.004 Rough Road = 0.008

Since:

API Level 2.4.0

Returns:

var windResistance as Lang.Float or Null

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]

Since:

API Level 2.4.0

Returns:

  • Lang.Float

    0.0 - 1.86 kg/m range, invalid = 0xFF

var windSpeed as Lang.Float or Null

The simulated wind speed setting for simulation mode

Since:

API Level 2.4.0

Returns:

  • Lang.Float

    -127 - +127 km/hr range, invalid = 0xFF


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