I was going to implement the new request messages (as I asked on gitter) in this library and make a PR. While doing that I found some opportunities for refactoring the code and making the API more usable.
In this PR I:
Replaced all the print statements (outside the test code) with appropriate logging calls. It's more flexible on the library's user side.
Refactored a duplicate code in messages_xml_map.py into a method.
I have made more changes which I kept out of this PR becuase they might change the API slightly. I have to double check how they are used in the main paparazzi repo before merging so not to break any functionalities.
I was going to implement the new request messages (as I asked on gitter) in this library and make a PR. While doing that I found some opportunities for refactoring the code and making the API more usable. In this PR I:
logging
calls. It's more flexible on the library's user side.messages_xml_map.py
into a method.I have made more changes which I kept out of this PR becuase they might change the API slightly. I have to double check how they are used in the main paparazzi repo before merging so not to break any functionalities.
Thanks!