Skip to content

Commit

Permalink
add __eq__()
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Jun 6, 2024
1 parent dc6fd9e commit 3a79915
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class Navigator(LinuxFlightController):
manufacturer = "Blue Robotics"
platform = Platform.Navigator

def __eq__(self, other: object) -> bool:
if not isinstance(other, Navigator):
return False
return other.name == self.name

def is_pi5(self) -> bool:
is_pi5 = False
with open("/proc/cpuinfo", "r", encoding="utf-8") as f:
Expand Down

0 comments on commit 3a79915

Please sign in to comment.