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

AP_Scripting: message_interval example handles 0hz #27873

Merged

Conversation

rmackay9
Copy link
Contributor

@rmackay9 rmackay9 commented Aug 20, 2024

This is a small enhancement to the message_interval lua script that is useful for forcibly setting the rate at which messages are sent to the ground station.

This comes out of the slung payload project where I want to force the payload to send its position to the vehicle at 10hz.

The changes are:

  • add more definitions for MAV_SEVERITY, commonly used message ids and serial port used
  • add ability to disable a message completely
  • added a welcome message

This has been lightly tested in SITL and on a real hardware (a Here4FC on the payload)

message-interval-testing

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

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

LGTM - might want to fix the comment?

libraries/AP_Scripting/examples/message_interval.lua Outdated Show resolved Hide resolved
@rmackay9 rmackay9 force-pushed the scripting-message-interval-update branch 2 times, most recently from c9ba33b to ecbbbdc Compare August 20, 2024 11:50
@rmackay9 rmackay9 force-pushed the scripting-message-interval-update branch from ecbbbdc to 674eaa9 Compare August 21, 2024 00:14
@rmackay9 rmackay9 merged commit 0d568b5 into ArduPilot:master Aug 21, 2024
94 checks passed
@rmackay9 rmackay9 deleted the scripting-message-interval-update branch August 21, 2024 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants