Skip to content

Commit

Permalink
Merge pull request #83 from pixxelhq/master
Browse files Browse the repository at this point in the history
v5.8.9-Pixxel.SNAPSHOT-2.7.2
  • Loading branch information
swarup-n authored May 13, 2024
2 parents ce21756 + ed7a38a commit 31b27f3
Show file tree
Hide file tree
Showing 30 changed files with 34 additions and 33 deletions.
2 changes: 1 addition & 1 deletion distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.yamcs</groupId>
<artifactId>yamcs</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>distribution</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/cascading/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>cascading</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/ccsds-frames/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>ccsds-frames</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/cfdp-udp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>cfdp-udp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/cfdp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>cfdp</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/perftest1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>perftest1</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/perftest2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>perftest2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs</groupId>
<artifactId>yamcs</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<groupId>org.yamcs.examples</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/pus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>pus</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/replication1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>replication1</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/replication2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>replication2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/replication3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>replication3</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/simulation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>simulation</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/snippets/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>snippets</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs.examples</groupId>
<artifactId>examples</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>templates</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion packet-viewer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.yamcs</groupId>
<artifactId>yamcs</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>packet-viewer</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.yamcs</groupId>
<artifactId>yamcs</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>

<packaging>pom</packaging>

Expand Down
2 changes: 1 addition & 1 deletion simulator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs</groupId>
<artifactId>yamcs</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>simulator</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.yamcs</groupId>
<artifactId>yamcs</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion yamcs-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.yamcs</groupId>
<artifactId>yamcs</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>yamcs-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion yamcs-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.yamcs</groupId>
<artifactId>yamcs</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>yamcs-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion yamcs-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.yamcs</groupId>
<artifactId>yamcs</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>yamcs-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ private static ConditionCode fromCode(byte code) {
}
}

public static ConditionCode reaConditionCodeAsIs(byte b) {
return ConditionCode.fromCode(b);
}

public static ConditionCode readConditionCode(byte b) {
return ConditionCode.fromCode((byte) ((b >> 4)&0x0F));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public void onTuple(Stream stream, Tuple tuple) {
FileTransfer filetransfer = getOngoingUploadFileTransfer(packet.getUniquenessId().getLargePacketTransactionId());
if (filetransfer != null) {
S13OutgoingTransfer outgoingTransfer = (S13OutgoingTransfer) filetransfer;
outgoingTransfer.cancel(ConditionCode.readConditionCode((byte) packet.getFailureCode().byteValue()));
outgoingTransfer.cancel(ConditionCode.reaConditionCodeAsIs((byte) packet.getFailureCode().byteValue()));

} else {
log.warn("Erroneous Uplink abortion request received");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,11 @@ public static PacketType fromString(String text) {

public static DownlinkS13Packet fromTuple(Tuple t) {
long largePacketTransactionId = (Long) t.getLongColumn(COL_LARGE_PACKET_TRANSACTION_ID);
long partSequenceNumber = (Long) t.getLongColumn(COL_PART_SEQUENCE_NUMBER);
byte[] filePart = (byte[]) t.getColumn(COL_FILE_PART);
PacketType packetType = PacketType.fromString((String) t.getColumn(COL_PACKET_TYPE));
int failureCode = (Integer) t.getColumn(COL_FAILURE_REASON);

// In the case of S13, largePacketTransactionId is the sourceId (i.e the remoteId)
return new DownlinkS13Packet(new S13UniqueId(largePacketTransactionId, TransferDirection.DOWNLOAD), partSequenceNumber, filePart, packetType, failureCode);
return new DownlinkS13Packet(new S13UniqueId(largePacketTransactionId, TransferDirection.DOWNLOAD), -1, null, packetType, failureCode);
}

public PacketType getPacketType() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public SubServiceSixteen(String yamcsInstance, YConfiguration subServiceSixConfi

@Override
public PreparedCommand process(PreparedCommand pusTelecommand) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'process'");
}

Expand All @@ -32,15 +31,15 @@ public ArrayList<TmPacket> process(TmPacket tmPacket) {

byte[] dataField = pkt.getDataField();

int largePacketTransactionId = (int) ByteArrayUtils.decodeCustomInteger(dataField, 0, ServiceThirteen.largePacketTransactionIdSize);
long largePacketTransactionId = ByteArrayUtils.decodeCustomInteger(dataField, 0, ServiceThirteen.largePacketTransactionIdSize);
int failureReason = (int) ByteArrayUtils.decodeCustomInteger(dataField, ServiceThirteen.largePacketTransactionIdSize, ServiceThirteen.failureReasonSize);

TupleDefinition td = S13_TM.copy();
ServiceThirteen.s13In.emitTuple(new Tuple(td, new Object[] {
largePacketTransactionId,
null,
null,
null,
"ABORTION",
failureReason
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ protected void loadCalibrationSheet(SpaceSystem spaceSystem, String sheetName) {
cells = jumpToRow(sheet, j);
if (CALIB_TYPE_ENUMERATION.equalsIgnoreCase(type)) {
try {
long raw = Integer.decode(getContent(cells, CN_CALIB_CALIB1));
long raw = Long.decode(getContent(cells, CN_CALIB_CALIB1));
ValueEnumeration ve = new ValueEnumeration(raw, getContent(cells, CN_CALIB_CALIB2));
ve.setDescription(getContent(cells, CN_CALIB_DESCRIPTION, null));
enumeration.values.add(ve);
Expand Down
2 changes: 1 addition & 1 deletion yamcs-tse/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.yamcs</groupId>
<artifactId>yamcs</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>yamcs-tse</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion yamcs-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.yamcs</groupId>
<artifactId>yamcs</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>yamcs-web</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion yamcs-xtce/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.yamcs</groupId>
<artifactId>yamcs</artifactId>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.1</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.7.2</version>
</parent>

<artifactId>yamcs-xtce</artifactId>
Expand Down

0 comments on commit 31b27f3

Please sign in to comment.