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

SS/STTのDS initをコマンド化しEHを更新 #300

Merged
merged 8 commits into from
May 20, 2024

Conversation

michinarikake
Copy link
Contributor

@michinarikake michinarikake commented May 13, 2024

Issue

詳細

SS, STTのテレメエラーの対策としてDS_initとDS_init_stream_rec_bufferをラップしたコマンドを定義した。
また, EHのSS, STTのreset BCにこれらのコマンドを追加した

検証結果

ビルドチェック (どちらもチェック)

  • SILSでのビルドチェックに通った(CIで確認)
  • vMicroでのビルドチェックに通った

動作確認チェック (いずれかをチェック)

  • SILSでアルゴリズムが想定通りに動いた
  • 実機でアルゴリズムが想定通りに動いた
  • (テレコマ試験の場合)コマンドファイルを使った試験をパスした

試験結果詳細記述場所 or 詳細ログ保存場所へのリンク

  • 図や表で記述する

補足

何かあれば書く。なければNAとする。

@michinarikake michinarikake requested a review from flap1 May 13, 2024 07:47
@michinarikake michinarikake self-assigned this May 13, 2024
@michinarikake michinarikake requested review from sksat and a team as code owners May 13, 2024 07:47
@michinarikake michinarikake requested review from 200km, seki-hiro, suzuki-toshihir0, t-hosonuma and conjikidow and removed request for a team May 13, 2024 07:47
@conjikidow conjikidow added this to the v10.0.0 Major update milestone May 14, 2024
@200km 200km added 🐳 major update Major update 🛰️ C2A Command Centric Architecture 🚀 priority::high priority high labels May 17, 2024
@michinarikake
Copy link
Contributor Author

michinarikake commented May 17, 2024

SILSで以下を確認

  • Cmd_DI_hoge_INIT_STREAM_REC_BUFFERによってDI_hoge_rx_buffer_(hoge_driverのdriver superのバッファと同一)の値が初期化されること
  • Cmd_DI_hoge_DS_INITによってhoge_driverのdriver superの設定値が初期化されること

Copy link
Member

@seki-hiro seki-hiro left a comment

Choose a reason for hiding this comment

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

追加ありがとうございます。
2点コメントしたので修正お願いします。
修正してもらい次第、こちらでvMicro build確認をしてマージしておきます。

{
(void)packet;
uint8_t i;
uint8_t is_ok;
Copy link
Member

Choose a reason for hiding this comment

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

[MUST]初期化をお願いします。

Suggested change
uint8_t is_ok;
uint8_t is_ok = 0;

Copy link
Contributor Author

@michinarikake michinarikake May 17, 2024

Choose a reason for hiding this comment

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

is_ok |=をis_ok &=にして初期化はis_ok = 1にしようと思います

{
(void)packet;
uint8_t i;
uint8_t is_ok;
Copy link
Member

Choose a reason for hiding this comment

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

[MUST]初期化をお願いします。

Suggested change
uint8_t is_ok;
uint8_t is_ok = 0;

for (i = 0; i < NANOSSOC_D60_PARAMETERS_NUMBER_OF_MOUNTED_SENSOR; ++i)
{
ret = NANOSSOC_D60_DS_init(&nanossoc_d60_driver_[i], &DI_NANOSSOC_D60_rx_buffer_[i]);
is_ok |= (ret == DS_INIT_OK);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ここ&の気がしてきました

Copy link
Member

Choose a reason for hiding this comment

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

確かに、全部成功してほしいということよね

ret = DS_init_stream_rec_buffer(&DI_NANOSSOC_D60_rx_buffer_[i],
DI_NANOSSOC_D60_rx_buffer_allocation_[i],
sizeof(DI_NANOSSOC_D60_rx_buffer_allocation_[i]));
is_ok |= (ret == DS_ERR_CODE_OK);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ここも&

@seki-hiro seki-hiro changed the title Feature/ss stt init cmd SS/STTのDS initをコマンド化しEHを更新 May 18, 2024
@seki-hiro
Copy link
Member

@michinarikake 修正ありがとう。マージできる状態ということでOKよね?
こちらでvMicroでbuildできしだいマージするつもりでいます。

@michinarikake
Copy link
Contributor Author

はい、マージできます!よろしくお願いします!

Co-authored-by: Toshihiro Suzuki <[email protected]>
@michinarikake
Copy link
Contributor Author

すみません、ミスってました...
鈴木さん、修正ありがとうございます!

@seki-hiro
Copy link
Member

最新devをとりこんでvMicro build通ったのでマージします。

@seki-hiro seki-hiro merged commit 4c90204 into develop May 20, 2024
9 of 11 checks passed
@seki-hiro seki-hiro deleted the feature/ss_stt_init_cmd branch May 20, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛰️ C2A Command Centric Architecture 🚀 priority::high priority high 🐳 major update Major update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants