Class: Toybox.AntPlus.DerailleurStatus

Overview

Class that stores current status information about a connected derailleur

Since:

API Level 3.1.0

Supported Devices:

Instance Member Summary collapse

Instance Attribute Details

var gearIndex as Lang.Number

Current gear index (for front derailleur 0 - 6, Toybox::AntPlus::FRONT_GEAR_INVALID = Unknown gear index / Error) (for rear derailleur 0 - 30, Toybox::AntPlus::REAR_GEAR_INVALID = Unknown gear index / Error)

Since:

API Level 3.1.0

Returns:

var gearMax as Lang.Number

Number of gears installed (1 - 7, Toybox::AntPlus::MAX_GEARS_INVALID = Unknown gear count / Error) (1 - 31, Toybox::AntPlus::MAX_GEARS_INVALID = Unknown gear count / Error)

Since:

API Level 3.1.0

Returns:

var gearSize as Lang.Number

Current gear size (number of teeth, 0 - 255)

Since:

API Level 3.1.0

Returns:

var invalidInboardShiftCount as Lang.Number

Number of invalid inboard shifts (0 - 255)

Since:

API Level 3.1.0

Returns:

var invalidOutboardShiftCount as Lang.Number

Number of invalid outboard shifts (0 - 255)

Since:

API Level 3.1.0

Returns:

var shiftFailureCount as Lang.Number

Number of shift failures (0 - 255)

Since:

API Level 3.1.0

Returns:


Generated Sep 23, 2024, 3:32:48 PM