Skip to content

Conversation

@geonnave
Copy link
Contributor

async def get_dotbots(client: RestClient) -> List[DotBotModel]:
dotbots = await client.fetch_active_dotbots()
if DOTBOT_ADDR is not None:
dotbots = [b for b in dotbots if b.address.lower() == DOTBOT_ADDR.lower()]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you describe the logic here? Normally each dotbot has a unique address so as I understand this code, you are limiting to a single dotbot and using a list comprehension for that makes no sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a quick test while we debug stuff onsite.

It gives ability for both me and William try different control loops in different robots at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants