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

added --heatbeat-rate #1284

Merged
merged 2 commits into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions MAVProxy/mavproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,8 @@ def set_mav_version(mav10, mav20, autoProtocol, mavversionArg):
parser.add_option("--aircraft", dest="aircraft", help="aircraft name", default=None)
parser.add_option("--cmd", dest="cmd", help="initial commands", default=None, action='append')
parser.add_option("--console", action='store_true', help="use GUI console")
parser.add_option("--heartbeat-rate",dest="heartbeat", default=1, type='float',
help="MAVLink HEARTBEAT rate")
if platform.system() == 'Windows':
parser.add_option("--no-console", action='store_true', help="don't use GUI console")
parser.add_option("--map", action='store_true', help="load map module")
Expand Down Expand Up @@ -1432,6 +1434,8 @@ def quit_handler(signum = None, frame = None):
mpstate.settings.streamrate = opts.streamrate
mpstate.settings.streamrate2 = opts.streamrate

mpstate.settings.heartbeat = opts.heartbeat

if opts.state_basedir is not None:
mpstate.settings.state_basedir = opts.state_basedir

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def package_files(directory):
# as that breaks the pip install. It seems that pip is not smart enough to
# use the system versions of these dependencies, so it tries to download and install
# large numbers of modules like numpy etc which may be already installed
requirements=['pymavlink>=2.4.14',
requirements=['pymavlink>=2.4.41',
'pyserial>=3.0',
'numpy']

Expand Down