code: def motors_armed(self):
          '''return true if motors armed'''
          if not 'HEARTBEAT' in self.messages:
              return False
          m = self.messages['HEARTBEAT']
          return (m.base_mode & mavlink.MAV_MODE_FLAG_SAFETY_ARMED) != f motors_armed(self):
          '''return true if motors armed'''
          if not 'HEARTBEAT' in self.messages:
              return False
          m = self.messages['HEARTBEAT']
          return (m.base_mode & mavlink.MAV_MODE_FLAG_SAFETY_ARMED) != 0
docs: return true if motors armed