unl-nimbus-lab / pymavswarm

Python library used to safely control drone swarms and drone fleets with MAVLink
https://pymavswarm.readthedocs.io
GNU General Public License v3.0
17 stars 5 forks source link

[FEATURE]: Add method to set message interval #98

Closed evan-palmer closed 2 years ago

evan-palmer commented 2 years ago

Is your feature request related to a problem? Please describe

When working with limited telemetry bandwidth, messages that are published frequently, but are unused, can hinder the performance of the swarm.

Describe the solution you'd like

Implement a method that enables configuration of specific message rates. This would also enable increasing the rate that messages are sent.

Describe alternatives you've considered

This could be performed manually on a GCS; however, this solution may not be sustainable or usable.

Implementation Ideas

Implement a new method called set_message_interval. The method should take the message whose interval should be set, the frequency of the message, and the agent IDs that should set the interval as arguments. The executor should use the MAV_CMD_SET_MESSAGE_INTERVAL command.

Additional context

This functionality has been implemented in other parts of the system; however, it would be valuable to expose this functionality to users.