incyclist-devices 2.2.6 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -64,6 +64,7 @@ class SmartTrainerCyclingMode extends power_base_1.default {
|
|
|
64
64
|
}
|
|
65
65
|
SmartTrainerCyclingMode.config = {
|
|
66
66
|
name: "Smart Trainer",
|
|
67
|
+
isSIM: true,
|
|
67
68
|
description: "Calculates speed based on power and slope. Slope is set to the device",
|
|
68
69
|
properties: [
|
|
69
70
|
{ key: 'bikeType', name: 'Bike Type', description: '', type: types_1.CyclingModeProperyType.SingleSelect, options: ['Race', 'Mountain', 'Triathlon'], default: 'Race' },
|
package/lib/modes/types.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export default interface ICyclingMode {
|
|
|
49
49
|
}
|
|
50
50
|
export type CyclingModeConfig = {
|
|
51
51
|
isERG?: boolean;
|
|
52
|
+
isSIM?: boolean;
|
|
52
53
|
name: string;
|
|
53
54
|
description: string;
|
|
54
55
|
properties: CyclingModeProperty[];
|
|
@@ -69,4 +70,7 @@ export declare class CyclingMode implements ICyclingMode {
|
|
|
69
70
|
getSettings(): Settings;
|
|
70
71
|
setModeProperty(_name: string, _value: any): void;
|
|
71
72
|
getModeProperty(_name: string): void;
|
|
73
|
+
getConfig(): CyclingModeConfig;
|
|
74
|
+
isERG(): boolean;
|
|
75
|
+
isSIM(): boolean;
|
|
72
76
|
}
|
package/lib/modes/types.js
CHANGED
|
@@ -52,5 +52,14 @@ class CyclingMode {
|
|
|
52
52
|
getModeProperty(_name) {
|
|
53
53
|
throw new Error("Method not implemented.");
|
|
54
54
|
}
|
|
55
|
+
getConfig() {
|
|
56
|
+
throw new Error("Method not implemented.");
|
|
57
|
+
}
|
|
58
|
+
isERG() {
|
|
59
|
+
return this.getConfig().isERG;
|
|
60
|
+
}
|
|
61
|
+
isSIM() {
|
|
62
|
+
return this.getConfig().isSIM;
|
|
63
|
+
}
|
|
55
64
|
}
|
|
56
65
|
exports.CyclingMode = CyclingMode;
|