MCPcopy Index your code
hub / github.com/dronekit/dronekit-python / SystemStatus

Class SystemStatus

dronekit/__init__.py:514–535  ·  view source on GitHub ↗

This object is used to get and set the current "system status". An object of this type is returned by :py:attr:`Vehicle.system_status`. .. py:attribute:: state The system state, as a ``string``.

Source from the content-addressed store, hash-verified

512
513
514class SystemStatus(object):
515 """
516 This object is used to get and set the current "system status".
517
518 An object of this type is returned by :py:attr:`Vehicle.system_status`.
519
520 .. py:attribute:: state
521
522 The system state, as a ``string``.
523 """
524
525 def __init__(self, state):
526 self.state = state
527
528 def __str__(self):
529 return "SystemStatus:%s" % self.state
530
531 def __eq__(self, other):
532 return self.state == other
533
534 def __ne__(self, other):
535 return self.state != other
536
537
538class HasObservers(object):

Callers 1

system_statusMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected