Skip to content

Commit

Permalink
small formating changes
Browse files Browse the repository at this point in the history
adrnp committed Dec 7, 2017
1 parent 11f9c30 commit c87745b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions connection/mavlink_connection.py
Original file line number Diff line number Diff line change
@@ -312,12 +312,14 @@ def wait_for_message(self):
# no message that is useful
return None

# send a heartbeat message back, since this needs to be constantly sent so the autopilot knows this exists
# send a heartbeat message back, since this needs to be
# constantly sent so the autopilot knows this exists
if msg.get_type() == 'HEARTBEAT':
# send -> type, autopilot, base mode, custom mode, system status
outmsg = self._master.mav.heartbeat_encode(mavutil.mavlink.MAV_TYPE_GCS,
mavutil.mavlink.MAV_AUTOPILOT_INVALID,
0, 0, mavutil.mavlink.MAV_STATE_ACTIVE)
outmsg = self._master.mav.heartbeat_encode(
mavutil.mavlink.MAV_TYPE_GCS, mavutil.mavlink.MAV_AUTOPILOT_INVALID,
0, 0, mavutil.mavlink.MAV_STATE_ACTIVE
)
self.send_message(outmsg)

# pass the message along to be handled by this class

0 comments on commit c87745b

Please sign in to comment.