System status (:py:class:`SystemStatus`). The status has a ``state`` property with one of the following values: * ``UNINIT``: Uninitialized system, state is unknown. * ``BOOT``: System is booting up. * ``CALIBRATING``: System is calibrating and not flight-r
(self)
| 1734 | |
| 1735 | @property |
| 1736 | def system_status(self): |
| 1737 | """ |
| 1738 | System status (:py:class:`SystemStatus`). |
| 1739 | |
| 1740 | The status has a ``state`` property with one of the following values: |
| 1741 | |
| 1742 | * ``UNINIT``: Uninitialized system, state is unknown. |
| 1743 | * ``BOOT``: System is booting up. |
| 1744 | * ``CALIBRATING``: System is calibrating and not flight-ready. |
| 1745 | * ``STANDBY``: System is grounded and on standby. It can be launched any time. |
| 1746 | * ``ACTIVE``: System is active and might be already airborne. Motors are engaged. |
| 1747 | * ``CRITICAL``: System is in a non-normal flight mode. It can however still navigate. |
| 1748 | * ``EMERGENCY``: System is in a non-normal flight mode. It lost control over parts |
| 1749 | or over the whole airframe. It is in mayday and going down. |
| 1750 | * ``POWEROFF``: System just initialized its power-down sequence, will shut down now. |
| 1751 | """ |
| 1752 | return { |
| 1753 | 0: SystemStatus('UNINIT'), |
| 1754 | 1: SystemStatus('BOOT'), |
| 1755 | 2: SystemStatus('CALIBRATING'), |
| 1756 | 3: SystemStatus('STANDBY'), |
| 1757 | 4: SystemStatus('ACTIVE'), |
| 1758 | 5: SystemStatus('CRITICAL'), |
| 1759 | 6: SystemStatus('EMERGENCY'), |
| 1760 | 7: SystemStatus('POWEROFF'), |
| 1761 | }.get(self._system_status, None) |
| 1762 | |
| 1763 | @property |
| 1764 | def heading(self): |
nothing calls this directly
no test coverage detected