From: Bdale Garbee Date: Mon, 26 May 2025 16:58:00 +0000 (-0600) Subject: use words for pyro status, decorate pressure and battery with units X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=669cb9feb7ad20727c2d7a6e7b13108d774b65ab;p=fw%2Fquantimotor use words for pyro status, decorate pressure and battery with units --- diff --git a/ui/app.py b/ui/app.py index 78c8ff0..dbda572 100755 --- a/ui/app.py +++ b/ui/app.py @@ -151,18 +151,21 @@ class App: case 'voltage1': thrust = '%.3f'%(voltage) case 'voltage2': - pyro = '%.3f'%(voltage) + if voltage > (15/16 * float(battery)): + pyro = "good" + else: + pyro = "open" case 'voltage3': - battery = '%.3f'%(voltage / (22/222)) + battery = '%.1f'%(voltage / (22/222)) armed = sense_armed() return { 'time' : current_time, - 'pressure' : pressure, + 'pressure' : pressure + " psi", 'thrust' : thrust, 'pyro' : pyro, - 'battery' : battery, + 'battery' : battery + " V", 'armed' : armed }