Skip to content

Commit

Permalink
Merge pull request #36 from the-hive-lab/35-uwb-address
Browse files Browse the repository at this point in the history
Remove `uwb_address` property
  • Loading branch information
adamlm authored Jul 1, 2023
2 parents 515797a + 88fc3d7 commit f51b9b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions dwm1001.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,6 @@ def system_info(self) -> SystemInfo:

return SystemInfo.from_string(response)

@property
def uwb_address(self) -> TagId:
self.send_shell_command(ShellCommand.SI)

response = self.get_shell_response().splitlines()

# System info response has several lines, but we only care about the address
address_line = response[1]
address_text_start = address_line.find("addr=")
address_string = address_line[address_text_start:].strip()

return TagId("0" + address_string.removeprefix("addr="))

def send_shell_command(self, command: ShellCommand) -> None:
self.serial_handle.write(command.value)
self.serial_handle.write(ShellCommand.ENTER.value)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pydwm1001"
version = "0.11.0"
version = "0.12.0"
authors = [
{ name="Adam Morrissett", email="morrissettal2@vcu.edu" },
]
Expand Down

0 comments on commit f51b9b5

Please sign in to comment.