Skip to content

Commit

Permalink
Merge pull request #80 from pixxelhq/master
Browse files Browse the repository at this point in the history
v5.8.9-Pixxel.SNAPSHOT-2.6.0
  • Loading branch information
swarup-n authored May 10, 2024
2 parents c5e7f52 + 2470b75 commit 3ce236c
Show file tree
Hide file tree
Showing 30 changed files with 38 additions and 38 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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</version>
</parent>

<artifactId>yamcs-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,23 @@ public ServiceSix(String yamcsInstance, YConfiguration config) {

List<Pair<Integer, Integer>> offsets = new ArrayList<>();
for (YConfiguration offsetConfig: baseConfig.getConfigList("offsets")) {
offsets.add(new Pair<>(
if (offsetConfig.isList("value")) {
List<Integer> values = offsetConfig.getList("value");
for (int v: values)
offsets.add(new Pair<>(
v, offsetConfig.getInt("length")
));
} else
offsets.add(new Pair<>(
offsetConfig.getInt("value"), offsetConfig.getInt("length")
));
));
}
baseIds.put(baseIdValue, offsets);
}
}

memoryIds.put(new Pair<>(
memoryIdMap.getInt("apid"), memoryIdMap.getInt("value")
), baseIds);
memoryIds.put(new Pair<>(
memoryIdMap.getInt("apid"), memoryIdMap.getInt("value")
), baseIds);

} else {
throw new ConfigurationException("Provided memoryId: " + memoryId + " does not exist in the config");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@
import org.yamcs.TmPacket;
import org.yamcs.YConfiguration;
import org.yamcs.commanding.PreparedCommand;
import org.yamcs.mdb.CommandEncodingException;
import org.yamcs.tctm.pus.PusTcManager;
import org.yamcs.tctm.pus.services.PusSubService;
import org.yamcs.tctm.pus.services.tc.PusTcCcsdsPacket;
import org.yamcs.utils.ByteArrayUtils;
import org.yamcs.utils.StringConverter;

import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

public class SubServiceOne implements PusSubService {
String yamcsInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import org.yamcs.TmPacket;
import org.yamcs.YConfiguration;
import org.yamcs.commanding.PreparedCommand;
import org.yamcs.mdb.CommandEncodingException;
import org.yamcs.tctm.pus.PusTcManager;
import org.yamcs.tctm.pus.services.PusSubService;
import org.yamcs.tctm.pus.services.tc.PusTcCcsdsPacket;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ public byte[] getDataField() {
}

public byte[] getSpareField() {
byte[] b = bb.duplicate().array();
byte[] secondaryHeader = getSecondaryHeader();

return Arrays.copyOfRange(secondaryHeader, PusTmManager.PUS_HEADER_LENGTH, secondaryHeader.length);
}

public byte[] getPusHeaderField() {
byte[] b = bb.duplicate().array();
byte[] secondaryHeader = getSecondaryHeader();

return Arrays.copyOfRange(secondaryHeader, 0, PusTmManager.PUS_HEADER_LENGTH);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.yamcs.commanding.PreparedCommand;
import org.yamcs.tctm.pus.services.PusSubService;
import org.yamcs.tctm.pus.services.tm.PusTmCcsdsPacket;
import org.yamcs.tctm.pus.services.tm.fourteen.ServiceFourteen;
import org.yamcs.utils.ByteArrayUtils;

import java.nio.ByteBuffer;
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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</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.5.3</version>
<version>5.8.9-Pixxel.SNAPSHOT-2.6.0</version>
</parent>

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

0 comments on commit 3ce236c

Please sign in to comment.