File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -221,6 +221,9 @@ def signal_handler(sig, frame):
221221 print ("Index\t Y\t Z" )
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 )
You can’t perform that action at this time.
0 commit comments