@blueyerobotics/protocol-definitions 3.3.0-991d560c → 3.3.0-e472bef2
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/req_rep.d.ts +9 -1
- package/dist/req_rep.js +21 -2
- package/package.json +1 -1
package/dist/req_rep.d.ts
CHANGED
|
@@ -122,10 +122,18 @@ export interface DisconnectClientRep {
|
|
|
122
122
|
*/
|
|
123
123
|
export interface GetBatteryReq {
|
|
124
124
|
}
|
|
125
|
-
/**
|
|
125
|
+
/**
|
|
126
|
+
* Response with essential battery information.
|
|
127
|
+
*
|
|
128
|
+
* On models with two batteries running in parallel (e.g. the X7), second_battery
|
|
129
|
+
* holds the essential information for the second battery. When only a single
|
|
130
|
+
* battery is used, second_battery is undefined (not set).
|
|
131
|
+
*/
|
|
126
132
|
export interface GetBatteryRep {
|
|
127
133
|
/** Essential battery information. */
|
|
128
134
|
battery: Battery | undefined;
|
|
135
|
+
/** Second battery, when present. Not set if only one battery is used. */
|
|
136
|
+
secondBattery: Battery | undefined;
|
|
129
137
|
}
|
|
130
138
|
/** Issue a desired mission to the reference_generator. */
|
|
131
139
|
export interface SetMissionReq {
|
package/dist/req_rep.js
CHANGED
|
@@ -960,13 +960,16 @@ exports.GetBatteryReq = {
|
|
|
960
960
|
},
|
|
961
961
|
};
|
|
962
962
|
function createBaseGetBatteryRep() {
|
|
963
|
-
return { battery: undefined };
|
|
963
|
+
return { battery: undefined, secondBattery: undefined };
|
|
964
964
|
}
|
|
965
965
|
exports.GetBatteryRep = {
|
|
966
966
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
967
967
|
if (message.battery !== undefined) {
|
|
968
968
|
message_formats_1.Battery.encode(message.battery, writer.uint32(10).fork()).join();
|
|
969
969
|
}
|
|
970
|
+
if (message.secondBattery !== undefined) {
|
|
971
|
+
message_formats_1.Battery.encode(message.secondBattery, writer.uint32(18).fork()).join();
|
|
972
|
+
}
|
|
970
973
|
return writer;
|
|
971
974
|
},
|
|
972
975
|
decode(input, length) {
|
|
@@ -983,6 +986,13 @@ exports.GetBatteryRep = {
|
|
|
983
986
|
message.battery = message_formats_1.Battery.decode(reader, reader.uint32());
|
|
984
987
|
continue;
|
|
985
988
|
}
|
|
989
|
+
case 2: {
|
|
990
|
+
if (tag !== 18) {
|
|
991
|
+
break;
|
|
992
|
+
}
|
|
993
|
+
message.secondBattery = message_formats_1.Battery.decode(reader, reader.uint32());
|
|
994
|
+
continue;
|
|
995
|
+
}
|
|
986
996
|
}
|
|
987
997
|
if ((tag & 7) === 4 || tag === 0) {
|
|
988
998
|
break;
|
|
@@ -992,13 +1002,19 @@ exports.GetBatteryRep = {
|
|
|
992
1002
|
return message;
|
|
993
1003
|
},
|
|
994
1004
|
fromJSON(object) {
|
|
995
|
-
return {
|
|
1005
|
+
return {
|
|
1006
|
+
battery: isSet(object.battery) ? message_formats_1.Battery.fromJSON(object.battery) : undefined,
|
|
1007
|
+
secondBattery: isSet(object.secondBattery) ? message_formats_1.Battery.fromJSON(object.secondBattery) : undefined,
|
|
1008
|
+
};
|
|
996
1009
|
},
|
|
997
1010
|
toJSON(message) {
|
|
998
1011
|
const obj = {};
|
|
999
1012
|
if (message.battery !== undefined) {
|
|
1000
1013
|
obj.battery = message_formats_1.Battery.toJSON(message.battery);
|
|
1001
1014
|
}
|
|
1015
|
+
if (message.secondBattery !== undefined) {
|
|
1016
|
+
obj.secondBattery = message_formats_1.Battery.toJSON(message.secondBattery);
|
|
1017
|
+
}
|
|
1002
1018
|
return obj;
|
|
1003
1019
|
},
|
|
1004
1020
|
create(base) {
|
|
@@ -1009,6 +1025,9 @@ exports.GetBatteryRep = {
|
|
|
1009
1025
|
message.battery = (object.battery !== undefined && object.battery !== null)
|
|
1010
1026
|
? message_formats_1.Battery.fromPartial(object.battery)
|
|
1011
1027
|
: undefined;
|
|
1028
|
+
message.secondBattery = (object.secondBattery !== undefined && object.secondBattery !== null)
|
|
1029
|
+
? message_formats_1.Battery.fromPartial(object.secondBattery)
|
|
1030
|
+
: undefined;
|
|
1012
1031
|
return message;
|
|
1013
1032
|
},
|
|
1014
1033
|
};
|