Skip to content

Commit 3dfcd10

Browse files
BradG13531patrickelectric
authored andcommitted
Updated .gitmodules and a small change to surveyor240Example
1 parent 1939dda commit 3dfcd10

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.gitmodules

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
[submodule "lib/ping-protocol"]
22
path = lib/ping-protocol
3-
# url = https://github.com/bluerobotics/ping-protocol
4-
url = https://github.com/BradG13531/ping-protocol
5-
branch = feature/surveyor-omniscan-s500-test
3+
url = https://github.com/bluerobotics/ping-protocol

examples/surveyor240Example.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ def signal_handler(sig, frame):
221221
print("Index\tY\tZ")
222222
for i in range(0, len(yz_data), 2):
223223
print(f"{i//2}\t{yz_data[i]:.2f}\t{yz_data[i+1]:.2f}")
224+
print(f"Temperature: {(data.water_degC * 9/5) + 32} F")
225+
print(f"Temperature: {data.water_degC} C")
226+
print(f"Pressure: {data.water_bar} Bar")
224227
break
225228
else:
226229
print("Failed to get yz point data")
@@ -234,12 +237,12 @@ def signal_handler(sig, frame):
234237
with open(water_stats_path, 'ab') as f:
235238
f.write(data.msg_data)
236239

237-
print(f"Pressure: {data.pressure} bar")
238-
print(f"Temperature: {data.temperature} C")
239240
print(f"Temperature: {(data.temperature * 9/5) + 32} F")
241+
print(f"Temperature: {data.temperature} C")
242+
print(f"Pressure: {data.pressure} bar")
240243
break
241244
else:
242-
print("Failed to get pressure data")
245+
print("Failed to get water stats data")
243246

244247
# Stop pinging from Surveyor
245248
mySurveyor240.control_set_ping_parameters(ping_enable = False)

0 commit comments

Comments
 (0)