-
Notifications
You must be signed in to change notification settings - Fork 15
SystemStatusListWidget
The DUXBetaSystemStatusListWidget
is a specialized subclass of DUXBetaListPanelWidget
which is provided to display a standard system status list showing aircraft state and allowing some settings to be adjusted.
Since the Beta 4 release, it consists of 13 widgets:
- Flight Mode
- EMMC Status
- Max Altitude
- Max Flight Distance
- Novice Mode
- Overview
- RC Battery
- RC Stick Mode
- Return-To-Home Altitude
- SD Card Status
- SSD Status
- Travel Mode
- Unit Mode
This widget is a good example of how to create a self contained list using a SmartModel.
The widget overrides the base ListPanelWidget and simply replaces the init
methods to instantiate the custom SmartModel
DUXBetaSystemStatusListSmarttModel
and install it using:
let _ = self.setupSmartModel(DUXBetaSystemStatusListSmarttModel())
[self setupSartModel:[DUXBetaSystemStatusListSmarttModel new];
An overridde of func defaultConfigure()
allows for creation and use of a default configuration object to set colors, and title bar name which will be used with the list.
A full description of how to customize panel objects is found on the Panel Configuration page.
DJI UX SDK Version 5 Beta 4.1