Skip to content

Commit

Permalink
changed logging levels in motor control
Browse files Browse the repository at this point in the history
  • Loading branch information
dyka3773 committed Jan 17, 2024
1 parent 12d47f1 commit 74ac695
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Rocket/app/Motor/MotorController.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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)

0 comments on commit 74ac695

Please sign in to comment.