Skip to content

Commit

Permalink
Added name checking to MavlinkDrone
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirbala committed Jan 31, 2024
1 parent b667bcf commit 1baf10a
Show file tree
Hide file tree
Showing 3 changed files with 80,352 additions and 0 deletions.
7 changes: 7 additions & 0 deletions onboard/python/implementation/drones/MavlinkDrone.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ async def toggleThermal(self, on):
''' Status methods '''

async def getName(self):
try:
product = await self.drone.info.get_product()
if product.product_name is not None and product.product_name != 'undefined':
return product.product_name
except Exception:
pass

return "MavlinkDrone"

async def getLat(self):
Expand Down
Loading

0 comments on commit 1baf10a

Please sign in to comment.