Skip to content

Commit bf6af64

Browse files
committed
Zachteck altitude bug fix
1 parent 5e62f84 commit bf6af64

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

BalloonTelemetry.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@
77
# telemetryfile = Y or N (this will output telemetry data to a file named callsign-ssd.txt)
88
# ldatetime = last date/time of successful upload of balloon data, you can change this value to reprocess past data
99
#
10+
[N5EKO-130]
11+
uploadsite = T
12+
uploadcallsign = W5MOM
13+
wsprcallsign = N5EKO/E
14+
ballooncallsign = N5EKO-130
15+
timeslot = 8
16+
tracker = Z
17+
telemetryfile = N
18+
comment = BLT-130 STX BLT, Greater Houston Hamfest
19+
# launched = 2023-03-01 @ 06:00
20+
ldatetime = 2024-03-25 00:00:00
1021

1122
[VE6AZX-15]
1223
tracker = Q

BalloonTelemetry.py

100644100755
File mode changed.

getZachtek.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ def getZachtek(wCallsign: str, uCallsign: str, bCallsign: str, timeslot: str, la
148148
# reference https://www.zachtek.com/post/a-new-wspr-transmitter-for-balloons -- table near the bottom
149149
# reference https://github.com/HarrydeBug/WSPR-transmitters/blob/master/Standard%20Firmware/Release/Hardware_Version_2_ESP8285/WSPR-TX2.05/WSPR-TX2.05.ino line 1430
150150
pwr1 = int(jWsprData[x]['power']) * 300
151+
pwr2 = int(jWsprData[y]['power']) * 300
151152
#altitude = (int(jWsprData[x]['power']) + int(jWsprData[y]['power'])) * 300
152-
altitude = pwr1
153+
altitude = pwr1 + pwr2
153154
logging.debug(f" alt1/power = {jWsprData[x]['power']}, alt2/power = {jWsprData[y]['power']}, altitude = {altitude}m")
154155

155156
logging.info(f" DateTime: {jWsprData[y]['time']}, Grid: {jWsprData[y]['tx_loc']}, Lat: {lat}, Lon: {lon}, Alt: {altitude}m {round(altitude*3.28084)}ft, x-y {x} {y}")

0 commit comments

Comments
 (0)