@blueyerobotics/protocol-definitions 3.2.0-7dc2e1a9 → 3.2.0-8c2492a3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/message_formats.d.ts +19 -3
- package/dist/message_formats.js +128 -0
- package/package.json +1 -1
|
@@ -1449,12 +1449,26 @@ export interface CameraParameters {
|
|
|
1449
1449
|
mjpgBitrate: number;
|
|
1450
1450
|
/** Shutter speed (1/10000 * s), -1 for automatic exposure. */
|
|
1451
1451
|
exposure: number;
|
|
1452
|
-
/** White balance temperature (2800..9300), -1 for
|
|
1452
|
+
/** White balance temperature (Pioneer/Pro/X1/X3: 2800..9300, Ultra: 2300..15000), -1 for auto. */
|
|
1453
1453
|
whiteBalance: number;
|
|
1454
|
-
/** Hue (-40..40), 0 as default. */
|
|
1454
|
+
/** Hue (-40..40), 0 as default. Only available on Pioneer/Pro/X1/X3. */
|
|
1455
1455
|
hue: number;
|
|
1456
|
-
/** Iso gain (0..1). */
|
|
1456
|
+
/** Iso gain (0..1). Only available on Pioneer/Pro/X1/X3. */
|
|
1457
1457
|
gain: number;
|
|
1458
|
+
/** Brightness (-10..10), 0 as default. Only available on Ultra */
|
|
1459
|
+
brightness: number;
|
|
1460
|
+
/** Contrast (-50..50), 0 as default. Only available on Ultra. */
|
|
1461
|
+
contrast: number;
|
|
1462
|
+
/** Saturation (-0..50), 8 as default. Only available on Ultra. */
|
|
1463
|
+
saturation: number;
|
|
1464
|
+
/** Gamma (4..79), 22 as default. Only available on Ultra. */
|
|
1465
|
+
gamma: number;
|
|
1466
|
+
/** Sharpness (-20..20), -20 as default. Only available on Ultra. */
|
|
1467
|
+
sharpness: number;
|
|
1468
|
+
/** Backlight compensation (-150..150), 10 as default. Only available on Ultra. */
|
|
1469
|
+
backlightCompensation: number;
|
|
1470
|
+
/** Noise reduction (-20..20), -20 as default. Only available on Ultra. */
|
|
1471
|
+
denoise: number;
|
|
1458
1472
|
/** Stream, recording and image resolution (deprecated). */
|
|
1459
1473
|
resolution: Resolution;
|
|
1460
1474
|
/** Stream resolution. */
|
|
@@ -1465,6 +1479,8 @@ export interface CameraParameters {
|
|
|
1465
1479
|
framerate: Framerate;
|
|
1466
1480
|
/** Which camera the parameters belong to. */
|
|
1467
1481
|
camera: Camera;
|
|
1482
|
+
/** Prioritize fixed frame rate over quality on Ultra. */
|
|
1483
|
+
fixedFramerate: boolean;
|
|
1468
1484
|
}
|
|
1469
1485
|
/**
|
|
1470
1486
|
* Overlay parameters.
|
package/dist/message_formats.js
CHANGED
|
@@ -9565,11 +9565,19 @@ function createBaseCameraParameters() {
|
|
|
9565
9565
|
whiteBalance: 0,
|
|
9566
9566
|
hue: 0,
|
|
9567
9567
|
gain: 0,
|
|
9568
|
+
brightness: 0,
|
|
9569
|
+
contrast: 0,
|
|
9570
|
+
saturation: 0,
|
|
9571
|
+
gamma: 0,
|
|
9572
|
+
sharpness: 0,
|
|
9573
|
+
backlightCompensation: 0,
|
|
9574
|
+
denoise: 0,
|
|
9568
9575
|
resolution: 0,
|
|
9569
9576
|
streamResolution: 0,
|
|
9570
9577
|
recordingResolution: 0,
|
|
9571
9578
|
framerate: 0,
|
|
9572
9579
|
camera: 0,
|
|
9580
|
+
fixedFramerate: false,
|
|
9573
9581
|
};
|
|
9574
9582
|
}
|
|
9575
9583
|
exports.CameraParameters = {
|
|
@@ -9592,6 +9600,27 @@ exports.CameraParameters = {
|
|
|
9592
9600
|
if (message.gain !== 0) {
|
|
9593
9601
|
writer.uint32(77).float(message.gain);
|
|
9594
9602
|
}
|
|
9603
|
+
if (message.brightness !== 0) {
|
|
9604
|
+
writer.uint32(96).int32(message.brightness);
|
|
9605
|
+
}
|
|
9606
|
+
if (message.contrast !== 0) {
|
|
9607
|
+
writer.uint32(104).int32(message.contrast);
|
|
9608
|
+
}
|
|
9609
|
+
if (message.saturation !== 0) {
|
|
9610
|
+
writer.uint32(112).int32(message.saturation);
|
|
9611
|
+
}
|
|
9612
|
+
if (message.gamma !== 0) {
|
|
9613
|
+
writer.uint32(120).int32(message.gamma);
|
|
9614
|
+
}
|
|
9615
|
+
if (message.sharpness !== 0) {
|
|
9616
|
+
writer.uint32(128).int32(message.sharpness);
|
|
9617
|
+
}
|
|
9618
|
+
if (message.backlightCompensation !== 0) {
|
|
9619
|
+
writer.uint32(136).int32(message.backlightCompensation);
|
|
9620
|
+
}
|
|
9621
|
+
if (message.denoise !== 0) {
|
|
9622
|
+
writer.uint32(144).int32(message.denoise);
|
|
9623
|
+
}
|
|
9595
9624
|
if (message.resolution !== 0) {
|
|
9596
9625
|
writer.uint32(48).int32(message.resolution);
|
|
9597
9626
|
}
|
|
@@ -9607,6 +9636,9 @@ exports.CameraParameters = {
|
|
|
9607
9636
|
if (message.camera !== 0) {
|
|
9608
9637
|
writer.uint32(64).int32(message.camera);
|
|
9609
9638
|
}
|
|
9639
|
+
if (message.fixedFramerate !== false) {
|
|
9640
|
+
writer.uint32(152).bool(message.fixedFramerate);
|
|
9641
|
+
}
|
|
9610
9642
|
return writer;
|
|
9611
9643
|
},
|
|
9612
9644
|
decode(input, length) {
|
|
@@ -9658,6 +9690,55 @@ exports.CameraParameters = {
|
|
|
9658
9690
|
message.gain = reader.float();
|
|
9659
9691
|
continue;
|
|
9660
9692
|
}
|
|
9693
|
+
case 12: {
|
|
9694
|
+
if (tag !== 96) {
|
|
9695
|
+
break;
|
|
9696
|
+
}
|
|
9697
|
+
message.brightness = reader.int32();
|
|
9698
|
+
continue;
|
|
9699
|
+
}
|
|
9700
|
+
case 13: {
|
|
9701
|
+
if (tag !== 104) {
|
|
9702
|
+
break;
|
|
9703
|
+
}
|
|
9704
|
+
message.contrast = reader.int32();
|
|
9705
|
+
continue;
|
|
9706
|
+
}
|
|
9707
|
+
case 14: {
|
|
9708
|
+
if (tag !== 112) {
|
|
9709
|
+
break;
|
|
9710
|
+
}
|
|
9711
|
+
message.saturation = reader.int32();
|
|
9712
|
+
continue;
|
|
9713
|
+
}
|
|
9714
|
+
case 15: {
|
|
9715
|
+
if (tag !== 120) {
|
|
9716
|
+
break;
|
|
9717
|
+
}
|
|
9718
|
+
message.gamma = reader.int32();
|
|
9719
|
+
continue;
|
|
9720
|
+
}
|
|
9721
|
+
case 16: {
|
|
9722
|
+
if (tag !== 128) {
|
|
9723
|
+
break;
|
|
9724
|
+
}
|
|
9725
|
+
message.sharpness = reader.int32();
|
|
9726
|
+
continue;
|
|
9727
|
+
}
|
|
9728
|
+
case 17: {
|
|
9729
|
+
if (tag !== 136) {
|
|
9730
|
+
break;
|
|
9731
|
+
}
|
|
9732
|
+
message.backlightCompensation = reader.int32();
|
|
9733
|
+
continue;
|
|
9734
|
+
}
|
|
9735
|
+
case 18: {
|
|
9736
|
+
if (tag !== 144) {
|
|
9737
|
+
break;
|
|
9738
|
+
}
|
|
9739
|
+
message.denoise = reader.int32();
|
|
9740
|
+
continue;
|
|
9741
|
+
}
|
|
9661
9742
|
case 6: {
|
|
9662
9743
|
if (tag !== 48) {
|
|
9663
9744
|
break;
|
|
@@ -9693,6 +9774,13 @@ exports.CameraParameters = {
|
|
|
9693
9774
|
message.camera = reader.int32();
|
|
9694
9775
|
continue;
|
|
9695
9776
|
}
|
|
9777
|
+
case 19: {
|
|
9778
|
+
if (tag !== 152) {
|
|
9779
|
+
break;
|
|
9780
|
+
}
|
|
9781
|
+
message.fixedFramerate = reader.bool();
|
|
9782
|
+
continue;
|
|
9783
|
+
}
|
|
9696
9784
|
}
|
|
9697
9785
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9698
9786
|
break;
|
|
@@ -9709,11 +9797,19 @@ exports.CameraParameters = {
|
|
|
9709
9797
|
whiteBalance: isSet(object.whiteBalance) ? gt.Number(object.whiteBalance) : 0,
|
|
9710
9798
|
hue: isSet(object.hue) ? gt.Number(object.hue) : 0,
|
|
9711
9799
|
gain: isSet(object.gain) ? gt.Number(object.gain) : 0,
|
|
9800
|
+
brightness: isSet(object.brightness) ? gt.Number(object.brightness) : 0,
|
|
9801
|
+
contrast: isSet(object.contrast) ? gt.Number(object.contrast) : 0,
|
|
9802
|
+
saturation: isSet(object.saturation) ? gt.Number(object.saturation) : 0,
|
|
9803
|
+
gamma: isSet(object.gamma) ? gt.Number(object.gamma) : 0,
|
|
9804
|
+
sharpness: isSet(object.sharpness) ? gt.Number(object.sharpness) : 0,
|
|
9805
|
+
backlightCompensation: isSet(object.backlightCompensation) ? gt.Number(object.backlightCompensation) : 0,
|
|
9806
|
+
denoise: isSet(object.denoise) ? gt.Number(object.denoise) : 0,
|
|
9712
9807
|
resolution: isSet(object.resolution) ? resolutionFromJSON(object.resolution) : 0,
|
|
9713
9808
|
streamResolution: isSet(object.streamResolution) ? resolutionFromJSON(object.streamResolution) : 0,
|
|
9714
9809
|
recordingResolution: isSet(object.recordingResolution) ? resolutionFromJSON(object.recordingResolution) : 0,
|
|
9715
9810
|
framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
|
|
9716
9811
|
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
9812
|
+
fixedFramerate: isSet(object.fixedFramerate) ? gt.Boolean(object.fixedFramerate) : false,
|
|
9717
9813
|
};
|
|
9718
9814
|
},
|
|
9719
9815
|
toJSON(message) {
|
|
@@ -9736,6 +9832,27 @@ exports.CameraParameters = {
|
|
|
9736
9832
|
if (message.gain !== 0) {
|
|
9737
9833
|
obj.gain = message.gain;
|
|
9738
9834
|
}
|
|
9835
|
+
if (message.brightness !== 0) {
|
|
9836
|
+
obj.brightness = Math.round(message.brightness);
|
|
9837
|
+
}
|
|
9838
|
+
if (message.contrast !== 0) {
|
|
9839
|
+
obj.contrast = Math.round(message.contrast);
|
|
9840
|
+
}
|
|
9841
|
+
if (message.saturation !== 0) {
|
|
9842
|
+
obj.saturation = Math.round(message.saturation);
|
|
9843
|
+
}
|
|
9844
|
+
if (message.gamma !== 0) {
|
|
9845
|
+
obj.gamma = Math.round(message.gamma);
|
|
9846
|
+
}
|
|
9847
|
+
if (message.sharpness !== 0) {
|
|
9848
|
+
obj.sharpness = Math.round(message.sharpness);
|
|
9849
|
+
}
|
|
9850
|
+
if (message.backlightCompensation !== 0) {
|
|
9851
|
+
obj.backlightCompensation = Math.round(message.backlightCompensation);
|
|
9852
|
+
}
|
|
9853
|
+
if (message.denoise !== 0) {
|
|
9854
|
+
obj.denoise = Math.round(message.denoise);
|
|
9855
|
+
}
|
|
9739
9856
|
if (message.resolution !== 0) {
|
|
9740
9857
|
obj.resolution = resolutionToJSON(message.resolution);
|
|
9741
9858
|
}
|
|
@@ -9751,6 +9868,9 @@ exports.CameraParameters = {
|
|
|
9751
9868
|
if (message.camera !== 0) {
|
|
9752
9869
|
obj.camera = cameraToJSON(message.camera);
|
|
9753
9870
|
}
|
|
9871
|
+
if (message.fixedFramerate !== false) {
|
|
9872
|
+
obj.fixedFramerate = message.fixedFramerate;
|
|
9873
|
+
}
|
|
9754
9874
|
return obj;
|
|
9755
9875
|
},
|
|
9756
9876
|
create(base) {
|
|
@@ -9764,11 +9884,19 @@ exports.CameraParameters = {
|
|
|
9764
9884
|
message.whiteBalance = object.whiteBalance ?? 0;
|
|
9765
9885
|
message.hue = object.hue ?? 0;
|
|
9766
9886
|
message.gain = object.gain ?? 0;
|
|
9887
|
+
message.brightness = object.brightness ?? 0;
|
|
9888
|
+
message.contrast = object.contrast ?? 0;
|
|
9889
|
+
message.saturation = object.saturation ?? 0;
|
|
9890
|
+
message.gamma = object.gamma ?? 0;
|
|
9891
|
+
message.sharpness = object.sharpness ?? 0;
|
|
9892
|
+
message.backlightCompensation = object.backlightCompensation ?? 0;
|
|
9893
|
+
message.denoise = object.denoise ?? 0;
|
|
9767
9894
|
message.resolution = object.resolution ?? 0;
|
|
9768
9895
|
message.streamResolution = object.streamResolution ?? 0;
|
|
9769
9896
|
message.recordingResolution = object.recordingResolution ?? 0;
|
|
9770
9897
|
message.framerate = object.framerate ?? 0;
|
|
9771
9898
|
message.camera = object.camera ?? 0;
|
|
9899
|
+
message.fixedFramerate = object.fixedFramerate ?? false;
|
|
9772
9900
|
return message;
|
|
9773
9901
|
},
|
|
9774
9902
|
};
|