-
Notifications
You must be signed in to change notification settings - Fork 142
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
Add topic on MAVLink C library #defines #492
base: master
Are you sure you want to change the base?
Conversation
The following C `#defines` can be set in code in order to tune the setup for use on different platforms. | ||
|
||
- `MAVLINK_USE_CONVENIENCE_FUNCTIONS` ([protocol.h](https://github.com/ArduPilot/pymavlink/blob/master/generator/C/include_v2.0/protocol.h)): Causes convenience functions to be defined, including: `_mav_finalize_message_chan_send()`, `_mavlink_send_uart()`, `_mavlink_resend_uart()`. To use, add `#define MAVLINK_USE_CONVENIENCE_FUNCTIONS` to your code. | ||
- `MAVLINK_COMM_NUM_BUFFERS`: Sets the maximum number of comms buffers to be used (comms channels). |
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.
Would I be correct in thinking that you might specify 1
if you knew you had a mavlink component that would only have one connection to the network?
Co-authored-by: Julian Oes <[email protected]>
@julianoes OK, I've integrated your suggestions, and have one further question: #492 (comment) If that's correct, is this otherwise OK to go in? |
Fixes mavlink/mavlink#44
@auturgy @julianoes This needs review - questions inline because most of what I did was guesses.
Note, there are other defines, but I think they are all internal.