@@ -82,49 +82,49 @@ class ForumsladerView extends SimpleDataField {
82
82
{
83
83
switch ($ .UserSettings [i ] as Number )
84
84
{
85
- case 1 : // trip energy
86
- _displayString += _data .FLdata [FL_tripEnergy ] + " Wh" ;
85
+ case 0 : // off
87
86
break ;
88
87
89
- case 2 : // temperature
90
- _displayString += ( _data . FLdata [ FL_temperature ] / 10.0 ). format ( " %.1f " ) + " °C " ;
88
+ case 10 : // remaining battery capacity
89
+ _displayString += capacity + " % " ;
91
90
break ;
92
91
93
- case 3 : // dynamo power
94
- _displayString += (battVoltage * (_data .FLdata [FL_loadCurrent ] + _data .FLdata [FL_battCurrent ]) / 1000 ).toNumber () + " W" ;
92
+ case 9 : // speed
93
+ var speed = _data .FLdata [FL_frequency ] * _data .freq2speed as Float ;
94
+ _displayString += speed .format (" %.1f" ) + $ .speedunit ;
95
95
break ;
96
96
97
- case 4 : // generator gear
98
- _displayString += _data .FLdata [FL_gear ] ;
97
+ case 8 : // load current
98
+ _displayString += ( _data .FLdata [FL_loadCurrent ] / 1000.0 ). format ( " %.1f " ) + " A " ;
99
99
break ;
100
100
101
- case 5 : // dynamo impulse frequency
102
- var freq = _data .FLdata [FL_frequency ] / ($ .isV6 ? 10.0 : 1.0 ) as Float ;
103
- _displayString += freq .toNumber () + " Hz" ;
101
+ case 7 : // battery current
102
+ _displayString += (_data .FLdata [FL_battCurrent ] / 1000.0 ).format (" %+.1f" ) + " A" ;
104
103
break ;
105
104
106
105
case 6 : // battery voltage
107
106
_displayString += battVoltage .format (" %.1f" ) + " V" ;
108
107
break ;
109
108
110
- case 7 : // battery current
111
- _displayString += (_data .FLdata [FL_battCurrent ] / 1000.0 ).format (" %+.1f" ) + " A" ;
109
+ case 5 : // dynamo impulse frequency
110
+ var freq = _data .FLdata [FL_frequency ] / ($ .isV6 ? 10.0 : 1.0 ) as Float ;
111
+ _displayString += freq .toNumber () + " Hz" ;
112
112
break ;
113
113
114
- case 8 : // load current
115
- _displayString += ( _data .FLdata [FL_loadCurrent ] / 1000.0 ). format ( " %.1f " ) + " A " ;
114
+ case 4 : // generator gear
115
+ _displayString += _data .FLdata [FL_gear ] ;
116
116
break ;
117
117
118
- case 9 : // speed
119
- var speed = _data .FLdata [FL_frequency ] * _data .freq2speed as Float ;
120
- _displayString += speed .format (" %.1f" ) + $ .speedunit ;
118
+ case 3 : // dynamo power
119
+ _displayString += (battVoltage * (_data .FLdata [FL_loadCurrent ] + _data .FLdata [FL_battCurrent ]) / 1000 ).toNumber () + " W" ;
121
120
break ;
122
121
123
- case 10 : // remaining battery capacity
124
- _displayString += capacity + " % " ;
122
+ case 2 : // temperature
123
+ _displayString += ( _data . FLdata [ FL_temperature ] / 10.0 ). format ( " %.1f " ) + " °C " ;
125
124
break ;
126
125
127
- default : // off
126
+ case 1 : // trip energy
127
+ _displayString += _data .FLdata [FL_tripEnergy ] + " Wh" ;
128
128
break ;
129
129
}
130
130
_displayString += i < $ .DisplayField4 ? " " : " " ;
0 commit comments