-
Notifications
You must be signed in to change notification settings - Fork 120
Fix request_iswap_rotation_drive_orientation
#669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix request_iswap_rotation_drive_orientation
#669
Conversation
|
Why not make PARKED_RIGHT part of the enum? |
Can do but if it is part of the enum one would expect it to work the same way as the other enums... but that is not the case - when used with |
|
We can raise an error in that case |
| auto_id=False, | ||
| wp=orientation.value, | ||
| ) | ||
| if orientation.value: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why base this on the enum value? It is very implicit. Also the enum values typically don't matter. It would better to check
if orientation in {not, allow}:
raise
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The enum values are the reason for the existence of the enums, I thought? The vallues are what the firmware requires as input as in the example you highlighted.
We can of course make it more explicit though
No description provided.