From eecc49e131e186f0093654355c4a8d67dc76ed5b Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Thu, 26 Jan 2023 13:04:11 +1030 Subject: [PATCH] Overlay IMU data even if no cal --- tx/shssp2023.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tx/shssp2023.py b/tx/shssp2023.py index bdca35f..7d58b23 100644 --- a/tx/shssp2023.py +++ b/tx/shssp2023.py @@ -172,14 +172,14 @@ def post_process_image(filename): if bno != None: orientation = bno.read_state() - if (orientation['sys_cal'] == 3): - bno_string = " Heading: %.1f˚ Pitch: %.1f˚ Roll: %.1f˚" % ( - orientation['euler_heading'], - orientation['euler_pitch'], - orientation['euler_roll'] - ) - else: - bno_string = "" + bno_string = " Heading: %.1f˚ Pitch: %.1f˚ Roll: %.1f˚" % ( + orientation['euler_heading'], + orientation['euler_pitch'], + orientation['euler_roll'] + ) + + if (orientation['sys_cal'] != 3): + bno_string += " (Uncal)" else: bno_string = ""