TxCameraSettings constructor

TxCameraSettings({
  1. required int msgCode,
  2. int qualityIndex = 0,
  3. int autoExpGainTimes = 5,
  4. int autoExpInterval = 100,
  5. int meteringIndex = 2,
  6. double exposure = 0.18,
  7. double exposureSpeed = 0.5,
  8. int shutterLimit = 800,
  9. int analogGainLimit = 248,
  10. double whiteBalanceSpeed = 0.5,
  11. int manualShutter = 800,
  12. int manualAnalogGain = 124,
  13. int manualRedGain = 512,
  14. int manualGreenGain = 512,
  15. int manualBlueGain = 512,
})

Implementation

TxCameraSettings({
    required super.msgCode,
    int qualityIndex = 0, // [10, 25, 50, 100];
    int autoExpGainTimes =
        5, // val >= 0; number of times auto exposure and gain algorithm will be run every autoExpInterval ms
    int autoExpInterval = 100,
    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
    int manualShutter = 800, // 4 <= val <= 16383
    int manualAnalogGain = 124, // 0 <= val <= 248
    int manualRedGain = 512, // 0 <= val <= 1023
    int manualGreenGain = 512, // 0 <= val <= 1023
    int manualBlueGain = 512, // 0 <= val <= 1023
    })
    : _qualityIndex = qualityIndex,
      _autoExpGainTimes = autoExpGainTimes,
      _autoExpInterval = autoExpInterval,
      _meteringIndex = meteringIndex,
      _exposure = exposure,
      _exposureSpeed = exposureSpeed,
      _shutterLimit = shutterLimit,
      _analogGainLimit = analogGainLimit,
      _whiteBalanceSpeed = whiteBalanceSpeed,
      _manualShutter = manualShutter,
      _manualAnalogGain = manualAnalogGain,
      _manualRedGain = manualRedGain,
      _manualGreenGain = manualGreenGain,
      _manualBlueGain = manualBlueGain;