Skip to content

Commit

Permalink
client: get_sys_status answer length is reduced
Browse files Browse the repository at this point in the history
  • Loading branch information
goldarte committed Sep 12, 2019
1 parent d32e148 commit efd9c41
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Drone/mavros_mavlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ def get_sys_status():
global system_status
if check_state_topic():
status_text = {
mavlink.MAV_STATE_UNINIT: "MAV_STATE_UNINIT",
mavlink.MAV_STATE_BOOT: "MAV_STATE_BOOT",
mavlink.MAV_STATE_CALIBRATING: "MAV_STATE_CALIBRATING",
mavlink.MAV_STATE_STANDBY: "MAV_STATE_STANDBY",
mavlink.MAV_STATE_ACTIVE: "MAV_STATE_ACTIVE",
mavlink.MAV_STATE_CRITICAL: "MAV_STATE_CRITICAL",
mavlink.MAV_STATE_EMERGENCY: "MAV_STATE_EMERGENCY",
mavlink.MAV_STATE_POWEROFF: "MAV_STATE_POWEROFF",
mavlink.MAV_STATE_FLIGHT_TERMINATION: "MAV_STATE_FLIGHT_TERMINATION"
mavlink.MAV_STATE_UNINIT: "UNINIT",
mavlink.MAV_STATE_BOOT: "BOOT",
mavlink.MAV_STATE_CALIBRATING: "CALIBRATING",
mavlink.MAV_STATE_STANDBY: "STANDBY",
mavlink.MAV_STATE_ACTIVE: "ACTIVE",
mavlink.MAV_STATE_CRITICAL: "CRITICAL",
mavlink.MAV_STATE_EMERGENCY: "EMERGENCY",
mavlink.MAV_STATE_POWEROFF: "POWEROFF",
mavlink.MAV_STATE_FLIGHT_TERMINATION: "TERMINATION"
}.get(system_status, "NOT_CONNECTED_TO_FCU")
return status_text
return "NOT_CONNECTED_TO_FCU"
Expand Down

0 comments on commit efd9c41

Please sign in to comment.