Kees,
Thanks for your detailed patch, and code ideas.
What I would like to do, is move to each feature change / bug fix in your patch being a different pull request from your personal code repository.
I see:-
- Change of MAVLink default baud rate back to 57600; and ensure MAVLink initialisation is done correctly.
- Introduction of AUX_PORT for the AUV3, providing a 3rd Serial Port.
- Comment Changes.
I think I could demonstrate how to do that with a screencast video, and then I would ask you to see if you could use the Video for proposing the second change (I will have done the MAVLink pull request as part of the Video). I hope that sounds OK. I'm keen to try and ease the transition to using Git and Github for everyone.
From my point of view here are my reactions to your questions:-
Should we call that extra port AUX_PORT? Yes, that is fine with me. Other Developers may want to comment.
- Is serial3 a good name to use (in serialIO.c)? Yes, that seems fine to me as well. Again comments welcome from other developpers.
- should we use the new convention for enabling Mavlink, and change options.h to reflect this? Not sure what you mean by this.
- how can we take into account the plans Robert has for configuring these options without re-compiling? Personally I would like us to try and keep the MatrixPilot code pretty simple. Any time you introduce a file system or networking (TCP/IP), I think that they should either be done in a co-processor (running independently) or in an RTOS on a 32 bit computer (e.g. Arm processors). So for now, this is way down my own priority list. I want to see a reliable and tested and reasonably simple Master. (compared to say NuttX functionality). The Microchip code for filesystems is not OpenSource, but is restricted to PIC processor usage.
- some comments need changing; the new way to configure MAVLINK, a typo in port mappings, etc. OK, let's put that in a separate pull request.
Best wishes, Pete