aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Northup <grissess@nexusg.org>2018-09-06 03:53:41 -0400
committerGraham Northup <grissess@nexusg.org>2018-09-06 03:53:41 -0400
commit171cfd400cd89b468f03ca583e98c53f08b60e6b (patch)
tree93279fcbcf4f49e3d94292820316c424a1d710d3
parentc96689f87d8cf3542f3d8028e5fb331e21855004 (diff)
Client now displays drift rate
-rw-r--r--client.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/client.py b/client.py
index 9442f44..bfe98d5 100644
--- a/client.py
+++ b/client.py
@@ -130,6 +130,7 @@ def pygame_notes():
bgrwin.set_colorkey((0, 0, 0))
clock = pygame.time.Clock()
+ font = pygame.font.SysFont(pygame.font.get_default_font(), 24)
while True:
if options.no_colback:
@@ -180,8 +181,13 @@ def pygame_notes():
# break
#if len(pts) > 2:
# pygame.gfxdraw.aapolygon(disp, pts, [0, 255, 0])
+
disp.blit(bgrwin, (0, 0))
disp.blit(sampwin, (BGR_WIDTH, 0))
+ if QUEUED_PCM:
+ tsurf = font.render('%08.6f'%(DRIFT_FACTOR,), True, (255, 255, 255), (0, 0, 0))
+ disp.fill((0, 0, 0), tsurf.get_rect())
+ disp.blit(tsurf, (0, 0))
pygame.display.flip()
for ev in pygame.event.get():