|
| 1 | +class ConstantsRepository { |
| 2 | + static ConstantsRepository instance = ConstantsRepository.internal(); |
| 3 | + |
| 4 | + //General tab pulses numeric |
| 5 | + final double pulsesNumericMin = 0.5; |
| 6 | + final double pulsesNumericMax = 10; |
| 7 | + final double pulsesNumericStep = 0.5; |
| 8 | + |
| 9 | + //QS cut times numerics |
| 10 | + final double qsCutNumericMin = 30; |
| 11 | + final double qsCutNumericMax = 150; |
| 12 | + final double qsCutNumericStep = 1; |
| 13 | + |
| 14 | + //Sensor threshold numerics |
| 15 | + final double sensorNumericMin = 1; |
| 16 | + final double sensorNumericMax = 2000; |
| 17 | + final double sensorNumericStep = 1; |
| 18 | + |
| 19 | + //MinRPM numerics |
| 20 | + final double minRPMNumericMin = 0; |
| 21 | + final double minRPMNumericMax = 15500; |
| 22 | + final double minRPMNumericStep = 100; |
| 23 | + |
| 24 | + //MaxRPM numerics |
| 25 | + final double maxRPMNumericMin = 500; |
| 26 | + final double maxRPMNumericMax = 16000; |
| 27 | + final double maxRPMNumericStep = 100; |
| 28 | + |
| 29 | + //PreDelay numerics |
| 30 | + final double preDelayNumericMin = 0; |
| 31 | + final double preDelayNumericMax = 100; |
| 32 | + final double preDelayNumericStep = 1; |
| 33 | + |
| 34 | + //PostDelay numerics |
| 35 | + final double postDelayNumericMin = 300; |
| 36 | + final double postDelayNumericMax = 10000; |
| 37 | + final double postDelayNumericStep = 10; |
| 38 | + |
| 39 | + //DS blip times numerics |
| 40 | + final double dsBlipNumericMin = 30; |
| 41 | + final double dsBlipNumericMax = 300; |
| 42 | + final double dsBlipNumericStep = 1; |
| 43 | + |
| 44 | + //Average readings sensor numerics |
| 45 | + final double averageReadingsNumericMin = 1; |
| 46 | + final double averageReadingsNumericMax = 100; |
| 47 | + final double averageReadingsNumericStep = 1; |
| 48 | + |
| 49 | + //Sensor allowed numerics |
| 50 | + final double sensorAllowedNumericMin = 1; |
| 51 | + final double sensorAllowedNumericMax = 2047; |
| 52 | + final double sensorAllowedNumericStep = 1; |
| 53 | + |
| 54 | + //Sensor above numerics |
| 55 | + final double sensorAboveNumericMin = 0; |
| 56 | + final double sensorAboveNumericMax = 4095; |
| 57 | + final double sensorAboveNumericStep = 1; |
| 58 | + |
| 59 | + //Sensor below numerics |
| 60 | + final double sensorBelowNumericMin = 0; |
| 61 | + final double sensorBelowNumericMax = 4095; |
| 62 | + final double sensorBelowNumericStep = 1; |
| 63 | + |
| 64 | + //RPM Average numerics |
| 65 | + final double averageRPMNumericMin = 1; |
| 66 | + final double averageRPMNumericMax = 200; |
| 67 | + final double averageRPMNumericStep = 1; |
| 68 | + |
| 69 | + //DAC Adjustment numerics |
| 70 | + final double adjustmentDACNumericMin = 1; |
| 71 | + final double adjustmentDACNumericMax = 200; |
| 72 | + final double adjustmentDACNumericStep = 1; |
| 73 | + |
| 74 | + //Reading DAC numerics |
| 75 | + final double readingDACNumericMin = 1000; |
| 76 | + final double readingDACNumericMax = 500000; |
| 77 | + final double readingDACNumericStep = 1000; |
| 78 | + |
| 79 | + factory ConstantsRepository() { |
| 80 | + return instance; |
| 81 | + } |
| 82 | + |
| 83 | + ConstantsRepository.internal(); |
| 84 | +} |
0 commit comments