Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Generic arduino commands #35

Merged
merged 6 commits into from
Jan 31, 2018
Merged

Generic arduino commands #35

merged 6 commits into from
Jan 31, 2018

Conversation

PeterJCLaw
Copy link
Contributor

@PeterJCLaw PeterJCLaw commented Jan 28, 2018

This includes an immediate-response mechanism (fd728d0), some tidyup (10c0525 & 97e4676) and then introduces a mechanism for handling and replying to generic commands (9e0049b & 4a68906).

We assume that anyone wanting to use this mechanism will implement their own commands in the firmware, following our existing conventions.

This will allow commands to send one-off replies without neeing
to pollute the global board 'status' with command-specific response
information.
This includes passing them through to the arduino as well as
wrapping the responses in common boilerplate for interpretation
by robot-api.


class InvalidResponse(ValueError):
"""The servo assembly emitted an response which could not be processed."""
Copy link
Member

Choose a reason for hiding this comment

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

a response?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

bbf7ec9; thanks!

kierdavis
kierdavis previously approved these changes Jan 29, 2018
@kierdavis kierdavis dismissed their stale review January 29, 2018 22:44

Having done some tested, I'm not so sure.

@kierdavis
Copy link
Member

I'm confident that this works after testing on a kit yesterday. The uncertainty was actually due to issues with the arduino's firmware (sourcebots/arduino-fw#8, sourcebots/arduino-fw#9 and sourcebots/arduino-fw#11).

@PeterJCLaw PeterJCLaw merged commit bbf7ec9 into master Jan 31, 2018
@PeterJCLaw PeterJCLaw deleted the generic-arduino-commands branch January 31, 2018 12:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants