Skip to content

Calculate Radio Horizon In Line Of Sight Feature #220

Closed
just-stuff-tm wants to merge 16 commits into
zjs81:mainfrom
just-stuff-tm:calculate-refrac-los
Closed

Calculate Radio Horizon In Line Of Sight Feature #220
just-stuff-tm wants to merge 16 commits into
zjs81:mainfrom
just-stuff-tm:calculate-refrac-los

Conversation

@just-stuff-tm

@just-stuff-tm just-stuff-tm commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

This PR introduces the curvature-of-earth effect on radio waves inside the Line-of-Sight feature:

  • The LOS panel shows the live radio frequency right next to the “Frequency” label, renders the derived k= ratio inline, and opens a localized info dialog that explains the exact 0.15 × (frequency − baselineFreq) / baselineFreq adjustment from the 915 MHz / k=4/3 baseline so the yellow radio horizon cap is tied to the actual band being analyzed.
  • LineOfSightService.analyzePath / computeFromElevations carry the reported frequency and computed kFactor, expose those values in the result, and feed them to the painter, legend, and tooltip so the curved profile consistently reflects the operational frequency.
  • Added localized strings for the new frequency label/tooltip/dialog and the legend entries across every app_*.arb, then regenerated app_localizations*.dart, giving every supported locale translated copy for the new UI text.

Tests: dart format lib/screens/line_of_sight_map_screen.dart, flutter gen-l10n, flutter analyze (still only the pre-existing onReorder deprecation in lib/screens/channels_screen.dart:291:27).

  • Android

Show the connector frequency right next to the Frequency label, display the derived k value, and keep the info dialog tied to the exact
Show the connector frequency right next to the Frequency label, display the derived k value, and keep the info dialog tied to the exact
@just-stuff-tm just-stuff-tm marked this pull request as ready for review February 23, 2026 08:28
@zjs81

zjs81 commented Feb 23, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 677b25908a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/services/line_of_sight_service.dart
Comment thread lib/screens/line_of_sight_map_screen.dart
@just-stuff-tm

Copy link
Copy Markdown
Contributor Author

@codex review if you have access

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ec14870aed

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/screens/line_of_sight_map_screen.dart Outdated
@just-stuff-tm

Copy link
Copy Markdown
Contributor Author

@zjs81 @wel97459 @446564
@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 78f1a7b28e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/screens/line_of_sight_map_screen.dart Outdated
Comment thread lib/screens/line_of_sight_map_screen.dart
@just-stuff-tm

Copy link
Copy Markdown
Contributor Author

@codex review but know that frequency doesnt automaticaly change when on los screen

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e2585c0992

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/services/line_of_sight_service.dart Outdated
@just-stuff-tm

Copy link
Copy Markdown
Contributor Author

@codex rip it apart

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ea2f35ec2e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/screens/line_of_sight_map_screen.dart
@benallfree

Copy link
Copy Markdown
Contributor

@just-stuff-tm if you have a chance can you throw a few screen shots in here for us plebs :D

@just-stuff-tm

Copy link
Copy Markdown
Contributor Author

Screenshot_20260223-160836.png

@just-stuff-tm

Copy link
Copy Markdown
Contributor Author

Screenshot_20260223-164431.png

@just-stuff-tm

Copy link
Copy Markdown
Contributor Author

do not merge noticing an overflow issue Screenshot_20260223-175111.png

@just-stuff-tm just-stuff-tm marked this pull request as draft February 23, 2026 22:52
@just-stuff-tm

Copy link
Copy Markdown
Contributor Author

also removing the 0.15 calculation as that's not needed for true horizon calculation

@just-stuff-tm

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ddc87f3a27

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/screens/line_of_sight_map_screen.dart
Comment thread lib/l10n/app_de.arb Outdated
@just-stuff-tm

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6065059241

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/screens/line_of_sight_map_screen.dart
Comment thread lib/screens/line_of_sight_map_screen.dart
@just-stuff-tm just-stuff-tm marked this pull request as ready for review February 24, 2026 01:04
@just-stuff-tm

Copy link
Copy Markdown
Contributor Author

Screenshot_20260223-200658.png

Screenshot_20260223-200725.png

Screenshot_20260223-200710.png

Screenshot_20260223-200735.png

@just-stuff-tm

Copy link
Copy Markdown
Contributor Author

Pr merged with #232

@just-stuff-tm just-stuff-tm deleted the calculate-refrac-los branch February 24, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants