@@ -189,16 +189,23 @@ namespace LOAD {
189189 static_assert (NUM_COMBINATIONS == (1u << NUM_PINS ),
190190 " NUM_COMBINATIONS must be 2^NUM_PINS" );
191191
192- constexpr uint_fast8_t VOLT_LIMIT_SIZE = 20 ; // CONFIG
192+ constexpr uint_fast8_t VOLT_LIMIT_SIZE = 46 ; // CONFIG
193+ // etl::array<uint_fast16_t, VOLT_LIMIT_SIZE> VOLT_LIMITS_TABLE_mV = {
194+ // #include "triggerVoltages_mV.csv"
195+ // };
193196 etl::array<uint_fast16_t , VOLT_LIMIT_SIZE > VOLT_LIMITS_TABLE_mV = {
194- 20'000 , 19'500 , 19'375 , 19'250 , 19'125 , // 4
195- 19'000 , 18'500 , 18'000 , 17'500 , 17'000 , // 3
196- 16'000 , 00'000 , 15'000 , 14'600 , 14'200 , // 2
197- 13'800 , 13'400 , 13'000 , 12'000 , 11'000 // , // 1
198- // 10'000 // 0
199- };
200-
201- constexpr uint_fast8_t RES_INDEX_SIZE = 45 ; // CONFIG
197+ 25000 , 24000 , 23660 , 23330 , 23000 , // 9
198+ 22660 , 22330 , 22000 , 21815 , 21630 , // 8
199+ 21444 , 21259 , 21074 , 20889 , 20704 , // 7
200+ 20519 , 20333 , 20148 , 19963 , 19778 , // 6
201+ 19593 , 19407 , 19222 , 19037 , 18852 , // 5
202+ 18667 , 18481 , 18296 , 18111 , 17926 , // 4
203+ 17741 , 17556 , 17370 , 17185 , 17000 , // 3
204+ 16750 , 16500 , 16250 , 16000 , 15750 , // 2
205+ 15500 , 15250 , 15000 , 14750 , 14500 , // 1
206+ 14250 }; // 0, enable at 14000
207+
208+ constexpr uint_fast8_t RES_INDEX_SIZE = 46 ; // CONFIG
202209 etl::array<uint_fast8_t , RES_INDEX_SIZE > RES_INDEX_TABLE = {
203210 0 , 1 , 2 , 4 , 3 , // 9
204211 8 , 5 , 6 , 9 , 12 , // 8
@@ -208,9 +215,32 @@ namespace LOAD {
208215 31 , 33 , 35 , 36 , 40 , // 4
209216 37 , 41 , 39 , 44 , 48 , // 3
210217 45 , 46 , 50 , 47 , 51 , // 2
211- 56 , 53 , 54 , 57 , 55 // , // 1
212- // 60 // 0
218+ 56 , 53 , 54 , 57 , 55 , // 1
219+ 60 // 0, 63 default
213220 };
221+
222+ // etl::array<uint_fast16_t, VOLT_LIMIT_SIZE> VOLT_LIMITS_TABLE_mV = {
223+ // 20'000, 19'500, 19'375, 19'250, 19'125, // 4
224+ // 19'000, 18'500, 18'000, 17'500, 17'000, // 3
225+ // 16'000, 00'000, 15'000, 14'600, 14'200, // 2
226+ // 13'800, 13'400, 13'000, 12'000, 11'000//, // 1
227+ // // 10'000 // 0
228+ // };
229+
230+ // constexpr uint_fast8_t RES_INDEX_SIZE = 45; // CONFIG
231+ // etl::array<uint_fast8_t, RES_INDEX_SIZE> RES_INDEX_TABLE = {
232+ // 0, 1, 2, 4, 3, // 9
233+ // 8, 5, 6, 9, 12, // 8
234+ // 16, 11, 7, 14, 13, // 7
235+ // 15, 19, 24, 21, 22, // 6
236+ // 25, 23, 28, 29, 32, // 5
237+ // 31, 33, 35, 36, 40, // 4
238+ // 37, 41, 39, 44, 48, // 3
239+ // 45, 46, 50, 47, 51, // 2
240+ // 56, 53, 54, 57, 55//, // 1
241+ // // 60 // 0
242+ // };
243+
214244 // constexpr uint_fast8_t RES_INDEX_SIZE = 46; // CONFIG
215245 // etl::array<uint_fast8_t, RES_INDEX_SIZE> RES_INDEX_TABLE = {
216246 // 0, 1, 2, 4, 3, 8, 5, 6, 9, 12, 16, 11, 7, 14, 13, 15,
0 commit comments