Skip to content

Commit

Permalink
Resolve "Remove Port Configurables"
Browse files Browse the repository at this point in the history
Closes #1915

See merge request main/Sumatra!1787

sumatra-commit: 672288e2b25e36b287ce9def2f0068a73c86f0b1
  • Loading branch information
g3force authored and TIGERs GitLab committed Dec 6, 2023
1 parent 3dfccae commit 6442671
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ public class SSLVisionCam extends ACam implements Runnable, IReceiverObserver, I
private static final int BUFFER_SIZE = 10000;
private final byte[] bufferArr = new byte[BUFFER_SIZE];

@Configurable(comment = "Custom vision port that overwrites the value from moduli")
@Setter
private static int customPort;

@Configurable(comment = "Custom vision address that overwrites the value from moduli")
@Setter
private static String customAddress;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
*/
package edu.tigers.sumatra.referee;

import com.github.g3force.configurable.ConfigRegistration;
import com.github.g3force.configurable.Configurable;
import edu.tigers.sumatra.clock.NanoTime;
import edu.tigers.sumatra.gamelog.EMessageType;
import edu.tigers.sumatra.gamelog.GameLogMessage;
Expand Down Expand Up @@ -44,19 +42,12 @@ public class Referee extends AReferee
{
private static final int DEFAULT_GC_UI_PORT = 11000;

@Configurable(comment = "Custom referee port that overwrites the value from moduli")
@Setter
private static int customPort;

@Configurable(comment = "Custom referee address that overwrites the value from moduli")
@Setter
private static String customAddress;

static
{
ConfigRegistration.registerClass("user", Referee.class);
}


private final Map<ERefereeMessageSource, ARefereeMessageSource> msgSources = new EnumMap<>(
ERefereeMessageSource.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

package edu.tigers.sumatra.wp.exporter;

import com.github.g3force.configurable.Configurable;
import edu.tigers.moduli.AModule;
import edu.tigers.sumatra.model.SumatraModel;
import edu.tigers.sumatra.network.MulticastUDPTransmitter;
Expand All @@ -27,11 +26,9 @@ public class VisionTrackerSender extends AModule implements IWorldFrameObserver
private MulticastUDPTransmitter transmitter;
private TrackerPacketGenerator trackerPacketGenerator;

@Configurable(comment = "Custom vision port that overwrites the value from moduli")
@Setter
private static int customPort;

@Configurable(comment = "Custom vision address that overwrites the value from moduli")
@Setter
private static String customAddress;

Expand Down

0 comments on commit 6442671

Please sign in to comment.