Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions en/mavgen_python/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,11 @@

# Wait for the first heartbeat
# This sets the system and component ID of remote system for the link
the_connection.wait_heartbeat()
print("Heartbeat from system (system %u component %u)" % (the_connection.target_system, the_connection.target_component))
hb = the_connection.wait_heartbeat()
if hb is not None:
print("Heartbeat from system (system %u component %u)" % (the_connection.target_system, the_connection.target_component))
else:
print("No heartbeat received")

# Once connected, use 'the_connection' to get and send messages
```
Expand Down Expand Up @@ -388,4 +391,4 @@

Pymavlink questions can be raised in the normal MAVLink [support channels](../about/support.md).

The [Pymavlink Gitter channel](https://gitter.im/ArduPilot/pymavlink) also has an active support community.

Check warning on line 394 in en/mavgen_python/index.md

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (Gitter)
Loading