Merge pull request #309 from df7cb/telemetry-python3

scripts/telemetry-toolkit/telem-volts.py: Port to python3
This commit is contained in:
wb2osz 2021-01-03 17:47:36 -05:00 committed by GitHub
commit fe6cba2b0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/python3
# Part of Dire Wolf APRS Telemetry Toolkit, WB2OSZ, 2015 # Part of Dire Wolf APRS Telemetry Toolkit, WB2OSZ, 2015
@ -33,4 +33,4 @@ volts = adc.readADCSingleEnded(0, gain, sps) * 0.001 * (r1+r2) / r2
# (multiply by expected value, divide by uncalibrated result.) # (multiply by expected value, divide by uncalibrated result.)
#volts = volts * 4.98 / 4.889 #volts = volts * 4.98 / 4.889
print "%.3f" % (volts) print("%.3f" % (volts))