Skip to content

Commit

Permalink
fixes after merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
AndKe committed Mar 6, 2024
1 parent 50de1d6 commit 970c336
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MAVProxy/modules/mavproxy_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ def mavlink_packet(self, msg):
return
type = msg.get_type()
sysid = msg.get_srcSystem()
compid = msg.get_srcComponent()

if type in frozenset(['HEARTBEAT', 'HIGH_LATENCY2']):
if type == 'HEARTBEAT':
Expand All @@ -342,6 +343,7 @@ def mavlink_packet(self, msg):
self.update_vehicle_menu()

if type in ['RADIO', 'RADIO_STATUS']:
# handle RADIO msgs from all vehicles
if msg.rssi < msg.noise+10 or msg.remrssi < msg.remnoise+10:
fg = 'red'
if self.last_link_state != 1:
Expand Down Expand Up @@ -435,7 +437,7 @@ def mavlink_packet(self, msg):
self.console.set_status('Alt', 'Alt %s' % self.height_string(rel_alt))
self.console.set_status('AirSpeed', 'AirSpeed %s' % self.speed_string(msg.airspeed))
self.console.set_status('GPSSpeed', 'GPSSpeed %s' % self.speed_string(msg.groundspeed))
self.console.set_status('Thr', 'Thr %u%%' % msg.throttle)
self.console.set_status('Thr', 'Thr %u' % msg.throttle)
t = time.localtime(msg._timestamp)
flying = False
if self.mpstate.vehicle_type == 'copter':
Expand Down Expand Up @@ -630,7 +632,7 @@ def mavlink_packet(self, msg):
fg = 'dark green'
if m.linkerror:
linkline += "down"
fg = 'red'
fg = 'red'
self.say("Warning: Link Down")
else:
packets_rcvd_percentage = 100
Expand Down Expand Up @@ -712,7 +714,6 @@ def mavlink_packet(self, msg):

self.console.set_status('AltError', 'AltError %s' % alt_error, fg=fg)
self.console.set_status('AspdError', 'AspdError %s%s' % (self.speed_string(msg.aspd_error*0.01), aspd_error_sign))
#self.console.set_status('AspdError', 'AspdError %.1f%s' % (msg.aspd_error*0.01, aspd_error_sign))
self.console.set_status('XtrackError', 'XtrackError %d' % (msg.xtrack_error))
elif type == 'VIBRATION':
if msg.clipping_0 >= 20:
Expand Down

0 comments on commit 970c336

Please sign in to comment.