Skip to content
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

Fix include c2a-core v4 #519

Merged
merged 3 commits into from
Oct 17, 2023
Merged

Fix include c2a-core v4 #519

merged 3 commits into from
Oct 17, 2023

Conversation

sksat
Copy link
Collaborator

@sksat sksat commented Oct 17, 2023

Related issues

Description

Fixes build issue with c2a-core v4 integration.

  • src/components/real/communication/wings_command_sender_to_c2a.cpp
    • It missing #include "src_core/c2a_core_main.h"
  • c2a-core header include
    • These should be check C2A_CORE_VER_MAJOR is defined

Test results

Impact

Supplementary information

N/A

@sksat sksat added bug Something isn't working priority::high priorityg high C2A Something related with C2A flight software component component emulation patch backwards compatible bug fixes labels Oct 17, 2023
@sksat sksat requested a review from 200km October 17, 2023 06:26
@sksat sksat self-assigned this Oct 17, 2023
@sksat sksat requested a review from a team as a code owner October 17, 2023 06:26
@sksat sksat requested review from suzuki-toshihir0, t-hosonuma and conjikidow and removed request for a team October 17, 2023 06:26
@@ -9,7 +9,9 @@
#ifdef USE_C2A
#include "src_core/c2a_core_main.h"

#if C2A_CORE_VER_MAJOR == 4
#if !defined(C2A_CORE_VER_MAJOR)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C2A_CORE_VER_MAJOR が常に定義されていればこれでよい(そしてそうあるべき)のだが,よく考えると C2A_CORE_VER_MAJORv3.5.0 で入れたものなので,この対応だと v3.0.0 ~ v3.4.0 に対して breaking となってしまう

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

そしてこのファイル,もしかしてUSE_C2A=OFF でもビルドされてる?(なのでこの PR の CI 落ちてる)

Copy link
Collaborator Author

@sksat sksat Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not defined な時は #warning に変えた: f639d33

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これらのファイルは USE_C2A=ON の時のみビルドすべきでは?というのは #520 でやる(breaking change になってしまうし)

@sksat sksat force-pushed the hotfix/fix-include-c2a-core-v4 branch from 5cc8176 to f639d33 Compare October 17, 2023 06:41
Copy link
Member

@200km 200km left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正ありがとうございます。

@sksat sksat merged commit 956b9c6 into develop Oct 17, 2023
@sksat sksat deleted the hotfix/fix-include-c2a-core-v4 branch October 17, 2023 07:07
200km added a commit that referenced this pull request Oct 17, 2023
Merge develop to main for hotfix #519
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C2A Something related with C2A flight software component component emulation patch backwards compatible bug fixes priority::high priorityg high
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants