Skip to content

Commit

Permalink
Fixed bugs in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
senthurayyappan committed Sep 21, 2023
1 parent d10f3d5 commit 9ec14b1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 282 deletions.
6 changes: 3 additions & 3 deletions assets/images/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 3 additions & 5 deletions opensourceleg/osl.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ def __init__(
self._ankle: Joint = None # type: ignore
self._loadcell: Loadcell = None # type: ignore

self._log_data: bool = False

self.log = Logger(
file_path=file_name, log_format="[%(asctime)s] %(levelname)s: %(message)s"
)
Expand Down Expand Up @@ -129,7 +127,7 @@ def add_joint(
ports = utilities.get_active_ports()

if len(ports) == 0:
self.log.warn(
self.log.warning(
msg="No active ports found, please ensure that the joint is connected and powered on."
)

Expand Down Expand Up @@ -221,7 +219,7 @@ def update(
self._knee.update()

if self.knee.case_temperature > self.knee.max_temperature: # type: ignore
self.log.warn(
self.log.warning(
msg=f"[KNEE] Thermal limit {self.knee.max_temperature} reached. Stopping motor."
)
self.__exit__(type=None, value=None, tb=None)
Expand All @@ -231,7 +229,7 @@ def update(
self._ankle.update()

if self.ankle.case_temperature > self.ankle.max_temperature: # type: ignore
self.log.warn(
self.log.warning(
msg=f"[ANKLE] Thermal limit {self.ankle.max_temperature} reached. Stopping motor."
)
self.__exit__(type=None, value=None, tb=None)
Expand Down
Loading

0 comments on commit 9ec14b1

Please sign in to comment.