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

Update link margin analysis #364

Merged

Conversation

TomokiMochizuki
Copy link
Member

@TomokiMochizuki TomokiMochizuki commented Mar 15, 2023

Overview

Update link margin analysis

Details

  • update functions related to link margin analysis to simulate uplink margin analysis and downlink margin analysis simultaneously.

Validation results

compare the Python simulation result and S2E simulation result shown in the following figure.
test_sdown
test_sup

Scope of influence

eg. The behavior of XX will be change

Supplement

Only for communication and ground station analysis.

Note

  • If there are related Projects, tie them together.
  • Assignees should be set if possible.
  • Reviewers should be set if possible.
  • Set priority label if possible.

@200km 200km added priority::medium priority medium component component emulation major update incompatible API changes labels Mar 15, 2023
@200km 200km added this to the Major update for v6.0.0 milestone Mar 15, 2023
@200km
Copy link
Member

200km commented Mar 15, 2023

@TomokiMochizuki こちら、major updateに当たると思いますので、#303 をベースに開発しPRもそちらに対して出してもらえると助かります。

@TomokiMochizuki
Copy link
Member Author

@TomokiMochizuki こちら、major updateに当たると思いますので、#303 をベースに開発しPRもそちらに対して出してもらえると助かります。

わかりました!

@TomokiMochizuki TomokiMochizuki force-pushed the feature/update-antenna-pattern branch from 8e56266 to 4886243 Compare March 15, 2023 08:49
@TomokiMochizuki TomokiMochizuki changed the base branch from develop to feature/major-update-v6.0.0 March 15, 2023 08:50
@TomokiMochizuki
Copy link
Member Author

@200km
v6.0.0に変更したのですが,is_visible_flagが正常に機能していない気がしているのですが,こちら気のせいでしょうか...?

@TomokiMochizuki
Copy link
Member Author

同じシミュレーション条件でflagが立たなくなっている気がします.

@TomokiMochizuki
Copy link
Member Author

同じシミュレーション条件でflagが立たなくなっている気がします.

こちら再度確認してからまた連絡します.

@TomokiMochizuki
Copy link
Member Author

この問題は解決しました.
propagete_modeが単純に違っただけでした.

@TomokiMochizuki
Copy link
Member Author

@200km
こちら,検証含めて確認が終わりましたのでreviewの程お願いします.

src/components/real/communication/antenna.cpp Show resolved Hide resolved
src/components/real/communication/antenna.hpp Outdated Show resolved Hide resolved
@@ -14,6 +14,9 @@ is_receiver = 1
// frequency [MHz]
frequency_MHz = 8200.0

// bitrate [bps]
tx_bitrate_bps = 10000
Copy link
Member

Choose a reason for hiding this comment

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

[Q] bitrateはアンテナが決めるものではなく、その前段の送信機などで決めるものな気もするのですが、ここにこのパラメータを置くべきなのでしょうか?

Copy link
Member Author

Choose a reason for hiding this comment

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

送信機などで決めるのであれば,tx_output_Wfrequency_MHzもな気がしていて.どちらかに統一したかったです.

Copy link
Member

Choose a reason for hiding this comment

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

frequency_MHzはアンテナも関わってくる気がするので、ここで良いのではないでしょうか?
tx_output_Wはたしかにそうなので、送信機側に動かしても良いと思います。

Copy link
Member Author

Choose a reason for hiding this comment

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

frequency_MHzはアンテナも関わってくる気がするので、ここで良いのではないでしょうか? tx_output_Wはたしかにそうなので、送信機側に動かしても良いと思います。

それを行いますと,

tx_eirp_dBW_ = 10 * log10(tx_output_power_W_) + tx_parameters_.loss_feeder_dB_ + tx_parameters_.loss_pointing_dB_;

の箇所がうまくいかなくなってしまうので,tx_eirp_dBWを別の場所に移行しなければならないので,アンテナの方に押し込んだほうがいいと思います.

Copy link
Member

Choose a reason for hiding this comment

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

当初の設計からの問題ということですね。。。今の段階でひとまず動くようにしておく というのと、 より理想的な形に持っていく というのを両立するため、ひとまずここでは次のような対処にするというのはどうでしょう?

  • 現時点ではAntenna クラスにSetTxBitrateSetTxPowerなどの関数を準備して、これらの値を別の通信システムから設定できるようにしておく
  • 理想的な状態への改修に向けてTODOやFIXMEでコメントつけておく、issueも立てる

Copy link
Member Author

Choose a reason for hiding this comment

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

  • 現時点ではAntenna クラスにSetTxBitrateやSetTxPowerなどの関数を準備して、これらの値を別の通信システムから設定できるようにしておく
  • 理想的な状態への改修に向けてTODOやFIXMEでコメントつけておく、issueも立てる

これに関してですが,現状送受信機のClassが存在していないので,とりあえずアンテナに帰属させるのがいいと思ったので,そのままにしています.GroundStationCalculatorにあるのも変なので.
そのうえで,FIXMEを切っておきました。

Copy link
Member 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.

Set関数を準備するというのは、「そのパラメータはひとまずアンテナに帰属するが、別のコンポが制御できるような余地を残しておく」という意図です。
Set関数を使わなかった時に使われるパラメータ初期値は今のような設定で良いので、動作としては今と特に変わらないかなと思います。

Copy link
Member

Choose a reason for hiding this comment

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

とはいえ、Setは後から追加でも良い気もしてきましたし、issueも切ってくれたのでapproveしておきます

Copy link
Member Author

Choose a reason for hiding this comment

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

ありがとうございます。
では、マージします

@TomokiMochizuki TomokiMochizuki requested a review from 200km March 16, 2023 07:13
@TomokiMochizuki TomokiMochizuki merged commit e9af2c4 into feature/major-update-v6.0.0 Mar 21, 2023
@TomokiMochizuki TomokiMochizuki deleted the feature/update-antenna-pattern branch March 21, 2023 02:41
@TomokiMochizuki TomokiMochizuki mentioned this pull request Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component component emulation major update incompatible API changes priority::medium priority medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants