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

Pr param high latency freq #23048

Merged
merged 4 commits into from Apr 26, 2024
Merged

Conversation

oravla5
Copy link
Contributor

@oravla5 oravla5 commented Apr 23, 2024

Solved Problem

Missing parameter to configure the frequency of the HIGH_LATENCY2 stream in iridium mode.

Solution

  • Added parameter MAV_${i}_HL_FREQ to configure HIGH_LATENCY2 stream frequency in iridium mode.
  • In mavlink_main.cpp, added parsing of cli option -F setting the HIGH_LATENCY2 stream frequency in iridium mode.

Changelog Entry

For release notes:

New parameter: MAV_${i}_HL_FREQ
Documentation: Configures the frequency of HIGH_LATENCY2 stream for iridium instance ${i}.

Copy link
Member

@bkueng bkueng left a comment

Choose a reason for hiding this comment

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

Nice work. I would have done it as a single parameter, but this is fine too.


MAV_${i}_HL_FREQ:
description:
short: Configures the frequency of HIGH_LATENCY2 stream for iridium instance ${i}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
short: Configures the frequency of HIGH_LATENCY2 stream for iridium instance ${i}
short: Configures the frequency of HIGH_LATENCY2 stream for instance ${i}

err_flag = true;

} else {
if (freq >= 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (freq >= 0) {
if (freq >= 0.f) {

bkueng
bkueng previously approved these changes Apr 26, 2024
@bkueng bkueng merged commit f91103a into PX4:main Apr 26, 2024
89 checks passed
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.

None yet

2 participants