-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
Enable SocketAPM to run on LwIP and add DDS support #25523
Merged
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6415b3c
AP_DDS: use AP_NETWORKING_BACKEND_ANY
magicrub b965d40
AP_HAL: Enable SocketAPM to use LwIP/ChibiOS
magicrub 61d8ca7
waf: added --enable-networking and --enable-networking-tests
tridge c4c2778
Tools: added --enable-networking and --enable-networking-tests to sim…
tridge 2e9035a
AP_Networking: added networking test suite
tridge 587fe52
AP_Networking: add get_str() accessor to IP address parms
magicrub 537222c
AP_DDS: Add user-selectable UDP IP
magicrub f2ec539
AP_Networking: removed unuused send_udp in ChibiOS backend
tridge f4cd136
AP_Networking: added NET_TEST_IP for test server IP address
tridge aafd6d3
AP_Networking: added SITL backend
tridge dd7d4dd
AP_Networking: fixed build with gcc 11.x
tridge e7d5dbe
Tools/autotest: fix whitespace in sim_vehicle.py
magicrub 97ce047
AP_DDS: fix defines to make astyle happy
magicrub File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
#pragma once | ||
|
||
#include <AP_HAL/AP_HAL_Boards.h> | ||
#include <AP_Networking/AP_Networking_Config.h> | ||
|
||
#ifndef AP_DDS_ENABLED | ||
#define AP_DDS_ENABLED 1 | ||
#endif | ||
|
||
// UDP only on SITL for now | ||
#ifndef AP_DDS_UDP_ENABLED | ||
#define AP_DDS_UDP_ENABLED AP_DDS_ENABLED && (CONFIG_HAL_BOARD == HAL_BOARD_SITL) | ||
#define AP_DDS_UDP_ENABLED AP_DDS_ENABLED && AP_NETWORKING_ENABLED | ||
#endif | ||
|
||
#include <AP_VisualOdom/AP_VisualOdom_config.h> | ||
#ifndef AP_DDS_VISUALODOM_ENABLED | ||
#define AP_DDS_VISUALODOM_ENABLED HAL_VISUALODOM_ENABLED && AP_DDS_ENABLED | ||
#endif | ||
|
||
#ifndef AP_DDS_DEFAULT_UDP_IP_ADDR | ||
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS | ||
#define AP_DDS_DEFAULT_UDP_IP_ADDR "192.168.13.2" | ||
#else | ||
#define AP_DDS_DEFAULT_UDP_IP_ADDR "127.0.0.1" | ||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there a way to add a description
"IP address of the DDS Agent"
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.
I don't think so.
Note, the _POPT docs are broken. Docs say "DDS_UDP_PORT" but code is "DDS_PORT". I'm in favor of removing the "UDP" part and have a different param control TCP/UDP server/client options