You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sensors/detection/sensorhub-driver-krakenSDR/src/main/java/org/sensorhub/impl/sensor/krakenSDR/KrakenSdrConfig.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,11 @@ public class KrakenSdrConfig extends SensorConfig {
34
34
*/
35
35
@DisplayInfo.Required
36
36
@DisplayInfo(desc = "Serial number or unique identifier")
37
-
publicStringserialNumber = "test";
37
+
publicStringserialNumber = "kraken_rt";
38
38
39
39
@DisplayInfo.Required
40
40
@DisplayInfo(label="Kraken IP Address", desc="Provide the shared IP Address assigned to the KrakenSD")
41
-
publicStringkrakenIPaddress = "192.168.50.186";
41
+
publicStringkrakenIPaddress = "localhost";
42
42
43
43
@DisplayInfo.Required
44
44
@DisplayInfo(label="Kraken Data-out Port", desc="Provide the USB Port for your Sensor (Usually 8081)")
Copy file name to clipboardExpand all lines: sensors/detection/sensorhub-driver-krakenSDR/src/main/java/org/sensorhub/impl/sensor/krakenSDR/KrakenSdrOutputDOA.java
+24-14Lines changed: 24 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,11 @@
21
21
importorg.vast.swe.helper.GeoPosHelper;
22
22
23
23
importjava.io.BufferedReader;
24
+
importjava.io.IOException;
24
25
importjava.io.InputStreamReader;
25
26
importjava.net.HttpURLConnection;
27
+
importjava.net.MalformedURLException;
28
+
importjava.net.ProtocolException;
26
29
importjava.net.URL;
27
30
importjava.time.Instant;
28
31
importjava.time.OffsetDateTime;
@@ -79,7 +82,7 @@ public void doInit() {
79
82
.label("KrakenSDR Collection Time")
80
83
.description("Timestamp of when KrakenSDR reading was generated")
81
84
.definition(SWEHelper.getPropertyUri("time")))
82
-
.addField("raw-lob", sweFactory.createQuantity()
85
+
.addField("raw_lob", sweFactory.createQuantity()
83
86
.uomCode("deg")
84
87
.label("Raw LOB")
85
88
.description("The LOB to the emitter in absolute (true north) value")
Copy file name to clipboardExpand all lines: sensors/detection/sensorhub-driver-krakenSDR/src/main/java/org/sensorhub/impl/sensor/krakenSDR/KrakenSdrOutputSettings.java
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -155,7 +155,7 @@ public double getAverageSamplingPeriod() {
155
155
}
156
156
157
157
publicvoidSetData() {
158
-
DataBlockdataBlock;
158
+
DataBlockdataBlock;
159
159
try {
160
160
if (latestRecord == null) {
161
161
dataBlock = dataStruct.createDataBlock();
@@ -174,6 +174,10 @@ public void SetData() {
174
174
// RETRIEVE CURRENT JSON SETTINGS AS A JSON OBJECT
Copy file name to clipboardExpand all lines: sensors/detection/sensorhub-driver-krakenSDR/src/main/java/org/sensorhub/impl/sensor/krakenSDR/KrakenSdrSensor.java
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,10 @@ public void doInit() throws SensorHubException {
89
89
krakenSdrControlStation.doInit(initialSettings);
90
90
91
91
} catch (SensorHubExceptione) {
92
-
thrownewRuntimeException("Failed to connect to: " + settings_URL);
92
+
// System.err.println("Failed to connect to: " + settings_URL + "\nConfirm that Kraken DOA Software Configuration is displaying this output");
93
+
logger.error("Failed to connect to: " + settings_URL + "\nConfirm that Kraken DOA Software Configuration is displaying this output");
94
+
thrownewSensorHubException("Failed to connect to: (" + settings_URL + "). Confirm Kraken DOA Software Configuration is displaying to this this output");
95
+
// throw new RuntimeException("Failed to connect to: " + settings_URL);
Copy file name to clipboardExpand all lines: sensors/detection/sensorhub-driver-krakenSDR/src/main/resources/org/sensorhub/impl/sensor/krakenSDR/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,8 @@ To set this up properly, i found the following [YouTube Tutorial](https://www.yo
55
55
to type these commands in your Raspberry Pi's terminal:
56
56
1. Install GPSD
57
57
```commandline
58
-
sudo apt-get install gpsd gpsd-clients python-gps
58
+
sudo apt-get install gpsd gpsd-clients
59
+
pip3 install gpsd-py3
59
60
```
60
61
2. Stop current GPSD service, rebind to the correct serial, and then restart it.
0 commit comments