dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
ConfigCcpmWidget Class Reference

#include <configccpmwidget.h>

Inheritance diagram for ConfigCcpmWidget:
VehicleConfig ConfigTaskWidget

Public Slots

void getMixer ()
 
void setMixer ()
 
void saveccpmUpdate ()
 
- Public Slots inherited from ConfigTaskWidget
void onAutopilotDisconnect ()
 
void onAutopilotConnect ()
 
void invalidateObjects ()
 
void apply ()
 
void save ()
 

Public Member Functions

 ConfigCcpmWidget (QWidget *parent=nullptr)
 
 ~ConfigCcpmWidget ()
 
- Public Member Functions inherited from VehicleConfig
 VehicleConfig (QWidget *parent=nullptr)
 
 ~VehicleConfig ()
 
double getMixerVectorValue (UAVDataObject *mixer, int channel, MixerSettings::Mixer1VectorElem elementName)
 
void setMixerVectorValue (UAVDataObject *mixer, int channel, MixerSettings::Mixer1VectorElem elementName, double value)
 
void resetMixerVector (UAVDataObject *mixer, int channel)
 
void resetMixers (UAVDataObject *mixer)
 
QString getMixerType (UAVDataObject *mixer, int channel)
 
void setMixerType (UAVDataObject *mixer, int channel, MixerSettings::Mixer1TypeOptions mixerType)
 
double getMixerValue (UAVDataObject *mixer, QString elementName)
 
void setMixerValue (UAVDataObject *mixer, QString elementName, double value)
 
void setThrottleCurve (UAVDataObject *mixer, MixerSettings::Mixer1VectorElem curveType, QList< double > curve)
 
void getThrottleCurve (UAVDataObject *mixer, MixerSettings::Mixer1VectorElem curveType, QList< double > *curve)
 
bool isValidThrottleCurve (QList< double > *curve)
 
double getCurveMin (QList< double > *curve)
 
double getCurveMax (QList< double > *curve)
 
- Public Member Functions inherited from ConfigTaskWidget
 ConfigTaskWidget (QWidget *parent=nullptr)
 
virtual ~ConfigTaskWidget ()
 
void disableMouseWheelEvents ()
 
bool eventFilter (QObject *obj, QEvent *evt)
 
void saveObjectToSD (UAVObject *obj)
 
UAVObjectManagergetObjectManager ()
 ConfigTaskWidget::getObjectManager Utility function to get a pointer to the object manager. More...
 
UAVObjectUtilManagergetObjectUtilManager ()
 ConfigTaskWidget::getObjectUtilManager Utility function to get a pointer to the object manager utilities. More...
 
void addUAVObject (QString objectName, QList< int > *reloadGroups=NULL)
 
void addUAVObject (UAVObject *objectName, QList< int > *reloadGroups=NULL)
 
void addWidget (QWidget *widget)
 
void addUAVObjectToWidgetRelation (QString object, QString field, QWidget *widget, int index=0, double scale=1, bool isLimited=false, bool useUnits=false, QList< int > *defaultReloadGroups=nullptr, quint32 instID=0, bool oneWayBind=false)
 Add an UAVObject field to widget relation to the management system Note: This is the instance called for objrelation dynamic properties. More...
 
void addConnectionsButton (QPushButton *button)
 addConnectionsButton Add connection diagram button More...
 
void addWidgetToDefaultReloadGroups (QWidget *widget, QList< int > *groups)
 
bool addShadowWidget (QString object, QString field, QWidget *widget, int index=0, double scale=1, bool isLimited=false, bool useUnits=false, QList< int > *defaultReloadGroups=NULL, quint32 instID=0)
 
void autoLoadWidgets ()
 
void loadAllLimits ()
 
bool isAutopilotConnected ()
 ConfigTaskWidget::isAutopilotConnected Checks if the autopilot is connected. More...
 
bool isDirty ()
 
void setDirty (bool value)
 
bool allObjectsUpdated ()
 
void setOutOfLimitsStyle (QString style)
 
void addHelpButton (QPushButton *button, QString url)
 
void forceShadowUpdates ()
 ConfigTaskWidget::forceShadowUpdates. More...
 
void forceConnectedState ()
 
void setNotMandatory (QString object)
 
virtual void tabSwitchingAway ()
 

Protected Member Functions

void showEvent (QShowEvent *event)
 
void resizeEvent (QResizeEvent *event)
 
- Protected Member Functions inherited from VehicleConfig
void setLabelText (QWidget *owner, const QString &boxName, const QStringList &labels)
 
- Protected Member Functions inherited from ConfigTaskWidget
void checkWidgetsLimits (QWidget *widget, UAVObjectField *field, int index, bool hasLimits, bool useUnits, QVariant value, double scale)
 
virtual QVariant getVariantFromWidget (QWidget *widget, double scale, bool usesUnits=false)
 
virtual bool setWidgetFromVariant (QWidget *widget, QVariant value, double scale, QString units="")
 
virtual QString getOptionFromChecked (QWidget *widget, bool checked)
 Determine which enum option based on checkbox. More...
 
virtual bool getCheckedFromOption (QWidget *widget, QString option)
 Determine whether checkbox should be checked. More...
 
bool resetWidgetToDefault (QWidget *widget)
 resetWidgetToDefault Resets the widget to the default value for the associated field More...
 
void setWidgetProperty (QWidget *widget, const char *prop, const QVariant &value)
 setWidgetProperty Sets a dynamic property on a widget and forces a re-evaluation of it's stylesheet Normally the stylesheet isn't re-evaluated when dynamic properties are changed More...
 
void setWidgetEnabled (QWidget *widget, bool enabled=true)
 setWidgetEnabled Enable/disable a widget controlled by a UAVO relation More...
 

Friends

class ConfigVehicleTypeWidget
 

Additional Inherited Members

- Public Types inherited from ConfigTaskWidget
enum  buttonTypeEnum {
  none, save_button, apply_button, reload_button,
  default_button, help_button, reboot_button, connections_button
}
 
enum  metadataSetEnum { ALL_METADATA, SETTINGS_METADATA_ONLY, NONSETTINGS_METADATA_ONLY }
 
- Signals inherited from ConfigTaskWidget
void widgetContentsChanged (QWidget *widget)
 
void populateWidgetsRequested ()
 
void refreshWidgetsValuesRequested ()
 
void updateObjectsFromWidgetsRequested ()
 
void autoPilotConnected ()
 
void autoPilotDisconnected ()
 
void defaultRequested (int group)
 
- Static Public Member Functions inherited from VehicleConfig
static GUIConfigDataUnion GetConfigData ()
 
static void SetConfigData (GUIConfigDataUnion configData, SystemSettings::AirframeTypeOptions vehicle)
 
static void resetField (UAVObjectField *field)
 
static void setComboCurrentIndex (QComboBox *box, int index)
 
static void enableComboBoxes (QWidget *owner, QString boxName, int boxCount, bool enable)
 
- Static Public Member Functions inherited from ConfigTaskWidget
static double listMean (QList< double > list)
 
static double listVar (QList< double > list)
 
- Public Attributes inherited from VehicleConfig
QStringList channelNames
 
QStringList mixerTypes
 
QStringList mixerVectors
 
QStringList mixerTypeDescriptions
 
- Static Public Attributes inherited from VehicleConfig
static const double mixerScale = 128.0
 
static const double mixerRange = 256.0
 
- Protected Slots inherited from ConfigTaskWidget
virtual void disableObjUpdates ()
 
virtual void enableObjUpdates ()
 
virtual void clearDirty ()
 
virtual void widgetsContentsChanged ()
 
virtual void populateWidgets ()
 
virtual void refreshWidgetsValues (UAVObject *obj=NULL)
 
virtual void updateObjectsFromWidgets ()
 
virtual void helpButtonPressed ()
 
- Protected Attributes inherited from ConfigTaskWidget
UAVObjectUtilManagerutilMngr
 

Detailed Description

Definition at line 54 of file configccpmwidget.h.


The documentation for this class was generated from the following files: