-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
AP_DDS: configuration fixes #29009
AP_DDS: configuration fixes #29009
Conversation
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.
Awesome thanks. These all look good. Please squash.
- Resolve variable may be uninitialised error when compiling for ESP32. - Exclude definition of clock_gettime for HAL_BOARD_ESP32 - Use #if not #ifdef for AP_DDS_GOAL_PUB_ENABLED - Format #endif AP_DDS_GOAL_PUB_ENABLED - Use #if not #ifdef for AP_DDS_STATUS_PUB_ENABLED - Enclose rx_dynamic_transforms_topic declaration in #if ... #endif - Enclose quaternion initializer in #if ... #endif - AP_DDS_GOAL_PUB_ENABLED must also have AP_SCRIPTING_ENABLED Signed-off-by: Rhys Mainwaring <[email protected]> AP_DDS: configuration fixes Signed-off-by: Rhys Mainwaring <[email protected]>
2fb18e6
to
89d06b1
Compare
Found another issue which I've also added a fix for: AP_DDS_GOAL_PUB_ENABLED must also have AP_SCRIPTING_ENABLED as it depends on a scripting API in AP_Vehicle. |
LGTM. |
@@ -68,17 +68,17 @@ static constexpr uint16_t DELAY_AIRSPEED_TOPIC_MS = AP_DDS_DELAY_AIRSPEED_TOPIC_ | |||
#if AP_DDS_GEOPOSE_PUB_ENABLED | |||
static constexpr uint16_t DELAY_GEO_POSE_TOPIC_MS = AP_DDS_DELAY_GEO_POSE_TOPIC_MS; | |||
#endif // AP_DDS_GEOPOSE_PUB_ENABLED | |||
#if AP_DDS_GOAL_PUB_ENABLED | |||
#if AP_DDS_GOAL_PUB_ENABLED & AP_SCRIPTING_ENABLED |
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.
If scripting is a requirement for AP_DDS_GOAL_PUB_ENABLED
then that should have been reflected in setting the defaults for the feature define in AP_DDS_config.h
.
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.
Try #29014
Miscellaneous fixes to ensure that the various enable options in
AP_DDS_config.h
work as intended.Motivation
/ap/clock
andap/time
enabled) is failing due to indexing errors in to the topic table and unused variables.Details
*_ENABLED
options.Testing
/ap/clock
and/ap/time
in anesp32s3empty
build compiles correctly.Extract from esp32s3empty.h configured for a minimal DDS build