TxCameraSettings constructor

TxCameraSettings({
  1. required int msgCode,
  2. int qualityIndex = 0,
  3. int autoExpGainTimes = 0,
  4. int meteringIndex = 2,
  5. double exposure = 0.18,
  6. double exposureSpeed = 0.5,
  7. int shutterLimit = 800,
  8. int analogGainLimit = 248,
  9. double whiteBalanceSpeed = 0.5,
})

Implementation

TxCameraSettings({
    required super.msgCode,
    int qualityIndex = 0, // [10, 25, 50, 100];
    int autoExpGainTimes =
        0, // val >= 0; number of times auto exposure and gain algorithm will be run every 100ms
    int meteringIndex = 2, // ['SPOT', 'CENTER_WEIGHTED', 'AVERAGE'];
    double exposure = 0.18, // 0.0 <= val <= 1.0
    double exposureSpeed = 0.5, // 0.0 <= val <= 1.0
    int shutterLimit = 800, // 4 <= val <= 16383
    int analogGainLimit = 248, // 0 <= val <= 248
    double whiteBalanceSpeed = 0.5, // 0.0 <= val <= 1.0
    })
    : _qualityIndex = qualityIndex,
      _autoExpGainTimes = autoExpGainTimes,
      _meteringIndex = meteringIndex,
      _exposure = exposure,
      _exposureSpeed = exposureSpeed,
      _shutterLimit = shutterLimit,
      _analogGainLimit = analogGainLimit,
      _whiteBalanceSpeed = whiteBalanceSpeed;