Conversation
|
this fix will break again next time a message change occurs. Why not instantiate a SwitchControllerRequest which would have any new field already setup to default values. |
|
Yes we can do that as well. I wasn't so sure about the defaults values as they might didnt work well with hardware. I confirm they do after testing it. Please feel free to update it with a PR |
|
So you mean that it would actually be a "safety" feature to still call with given fixed set of parameters, and in case parameters are added, it will break and then somebody will look at it, whereas with my idea, default values might break things and/or get unnoticed. I think your way is still risky because if parameters change "order" (maybe never happens) the call might send wrong values to wrong parameters and also be unnoticed. I will provide a PR and you will decide to merge it or not. |
|
done here #97 |
Proposed changes
fixing the error for the new message for melodic
Types of changes
What types of changes does your code introduce?
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. This is a reminder of what we should look for before merging this code. I have: