Skip to content

Commit 644e626

Browse files
BradG13531patrickelectric
authored andcommitted
Small updates to Omniscan and Surveyor examples
1 parent 62ac21b commit 644e626

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/omniscan450Example.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ def signal_handler(sig, frame):
9898
data = PingMessage(msg_data=raw_bytes)
9999

100100
if data:
101+
print(data)
102+
103+
# Printing the same results as if directly connected to the Omniscan
101104
scaled_result = Omniscan450.scale_power(data)
102105
for i in range(len(scaled_result)):
103106
print(f"{i+1}: Raw: {data.pwr_results[i]}\tScaled: {scaled_result[i]}dB")

examples/surveyor240Example.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ def signal_handler(sig, frame):
236236

237237
print(f"Pressure: {data.pressure} bar")
238238
print(f"Temperature: {data.temperature} C")
239+
print(f"Temperature: {(data.temperature * 9/5) + 32} F")
239240
break
240241
else:
241242
print("Failed to get pressure data")

0 commit comments

Comments
 (0)