Config constructor

Config({
  1. bool speedUpThreshold = false,
  2. int tireNum = 4,
  3. String pStandardF = "230",
  4. String pStandardR = "230",
  5. int indexFront = 1,
  6. int lowVAlarmCount = 18,
  7. int lowVAlarmCountRelease = 9,
  8. double lowPResolution = 0.75,
  9. int lowPOffsetTrigger = 10,
  10. int lowPOffsetRelease = 30,
  11. double highPResolution = 1.25,
  12. double highTThreshold = 85,
  13. double highTRelease = 80,
  14. int airLeakDataCount = 125,
  15. int airLeakThreshold = 30,
  16. int indexPackageData = 2,
  17. int frameCountIndex = 12,
  18. int pIndexMSB = 10,
  19. int pIndexLSB = 9,
  20. int tIndex = 11,
  21. int funIndex = 8,
  22. List<String> airLeakBinary = const ["0100", "0010"],
  23. int vStartIndex = 2,
  24. int vEndIndex = 3,
  25. int binary = 2,
  26. int p_offset = -101,
  27. int v_offset = -60,
  28. double speedThreshold = 35.0,
  29. Duration timeout = const Duration(minutes: 10),
})

Implementation

Config({
  this.speedUpThreshold = false,
  this.tireNum = 4,
  this.pStandardF = "230",
  this.pStandardR = "230",
  this.indexFront = 1,
  this.lowVAlarmCount = 18,
  this.lowVAlarmCountRelease = 9,
  this.lowPResolution = 0.75,
  this.lowPOffsetTrigger = 10,
  this.lowPOffsetRelease = 30,
  this.highPResolution = 1.25,
  this.highTThreshold = 85,
  this.highTRelease = 80,
  this.airLeakDataCount = 125,
  this.airLeakThreshold = 30,
  this.indexPackageData = 2,
  this.frameCountIndex = 12,
  this.pIndexMSB = 10,
  this.pIndexLSB = 9,
  this.tIndex = 11,
  this.funIndex = 8,
  this.airLeakBinary = const ["0100", "0010"],
  this.vStartIndex = 2,
  this.vEndIndex = 3,
  this.binary = 2,
  this.p_offset = -101,
  this.v_offset = -60,
  this.speedThreshold = 35.0,
  this.timeout = const Duration(minutes: 10),
});