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

Refactor example user IfWrapper CMake #532

Merged
merged 2 commits into from
Apr 21, 2023

Conversation

sksat
Copy link
Collaborator

@sksat sksat commented Apr 6, 2023

概要

  • 分かりにくい if 文を修正
  • list(APPEND) を使わないようにした

Issue

  • 関連する issue

詳細

詳しく

検証結果

test へのリンクや,検証結果へのリンク

影響範囲

XX系の動作がガラッと変わる,とか.

補足

何かあれば

注意

  • 関連する Projects が存在する場合,それの紐付けを行うこと
  • Assignees を設定すること
  • 可能ならば Reviewers を設定すること
  • 可能ならば priority ラベルを付けること

@sksat sksat added the tools label Apr 6, 2023
@sksat sksat self-assigned this Apr 6, 2023
@sksat sksat requested a review from meltingrabbit April 6, 2023 07:26
SilsMockup/ccsds_sils.c
SilsMockup/i2c_sils.c
SilsMockup/uart_sils.c
SilsMockup/wdt_sils.c
)
else()
#target_sources(${PROJECT_NAME} PUBLIC
list(APPEND C2A_SRCS
set(C2A_IF_IMPL_COMMON_SRCS
Copy link
Collaborator

Choose a reason for hiding this comment

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

オプションによって追加する側( C2A_IF_COM_WINGS_SRCS など)に対して,追加される側って,なんかもっといい表現無いかな.

basis でもないしなぁ

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

feature とか?でも表現以前に現在の実装が同じディレクトリにベチャッと撒かれてるだけだから,現時点であんまりカッコイイ表現をすべきでもないと思う(過剰な期待を抱いてしまう)

#target_sources(${PROJECT_NAME} PUBLIC
list(APPEND C2A_SRCS
Sils/uart_sils_sci_if.cpp
if(USE_SCI_COM_WINGS) # TODO: これ USE_SCI_COM_UART では?
Copy link
Collaborator

Choose a reason for hiding this comment

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

文脈次第かな.

MOBC - 2nd OBC を com0com でつなげてSILSするときはそうなんだけど,
2nd OBC を直接WINGSに指すときはこれでいい.(そのOBCに対して,ペリフェラルを操作するためのUARTではなく,upstream 側の UART なんだけど,命名がな...)

Copy link
Collaborator

Choose a reason for hiding this comment

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

ちなみに,ここなおすなら Examples\2nd_obc_user\CMakeLists.txt の L11 も直さないとだめ

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

これは TODO comment に対する話?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

L11 は指摘と現状の書き方の方が嘘で,これが正しい

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

if 文のネストが深くなっていることに注意(GitHub の表示だとたしかにちょっとわかりにくいけど)

@sksat
Copy link
Collaborator Author

sksat commented Apr 21, 2023

マージし損ねてた

@sksat sksat merged commit 24e20e5 into develop Apr 21, 2023
@sksat sksat deleted the feature/user-refactor-ifwrapper-cmake branch April 21, 2023 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants