From 74ac695ef6ad9a35b38fd8a7ba5521e34c20880d Mon Sep 17 00:00:00 2001 From: Hercules Konsoulas Date: Thu, 18 Jan 2024 01:19:52 +0200 Subject: [PATCH] changed logging levels in motor control --- Rocket/app/Motor/MotorController.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Rocket/app/Motor/MotorController.py b/Rocket/app/Motor/MotorController.py index e967e93..8bb047f 100644 --- a/Rocket/app/Motor/MotorController.py +++ b/Rocket/app/Motor/MotorController.py @@ -29,7 +29,7 @@ async def run_motor_cycle(): break await DataStorage().save_motor_speed(0) - logging.debug("Motor is OFF") + logging.info("Motor is OFF") await asyncio.sleep(0.3) wait_for = TimelineEnum.START_MOTOR.value - TimelineEnum.LIFT_OFF.value @@ -38,7 +38,7 @@ async def run_motor_cycle(): while (time.perf_counter() - time_when_received_LO < wait_for): await DataStorage().save_motor_speed(0) - logging.debug("Motor is OFF") + logging.info("Motor is OFF") await asyncio.sleep(0.3) run_motor_for = TimelineEnum.SOE_ON.value - TimelineEnum.START_MOTOR.value @@ -55,10 +55,10 @@ async def run_motor_cycle(): while (time.perf_counter() - time_when_motor_started < run_motor_for): await DataStorage().save_motor_speed(1) - logging.debug("Motor is ON") + logging.info("Motor is ON") await asyncio.sleep(0.3) while (time.perf_counter() - time_when_received_LO < TimelineEnum.SODS_OFF.value): await DataStorage().save_motor_speed(0) - logging.debug("Motor is OFF") + logging.info("Motor is OFF") await asyncio.sleep(0.3)