Commit b49e1e9d authored by tecnosapiens's avatar tecnosapiens

ready to merge new brach architecture

parent 11c2ee6f
...@@ -53,6 +53,7 @@ void SlugsDataSensorView::addUAS(UASInterface* uas) ...@@ -53,6 +53,7 @@ void SlugsDataSensorView::addUAS(UASInterface* uas)
connect(slugsMav, SIGNAL(slugsPWM(int,const mavlink_pwm_commands_t&)),this,SLOT(slugsPWMChanged(int,const mavlink_pwm_commands_t&))); connect(slugsMav, SIGNAL(slugsPWM(int,const mavlink_pwm_commands_t&)),this,SLOT(slugsPWMChanged(int,const mavlink_pwm_commands_t&)));
connect(slugsMav, SIGNAL(slugsFilteredData(int,const mavlink_filtered_data_t&)),this,SLOT(slugsFilteredDataChanged(int,const mavlink_filtered_data_t&))); connect(slugsMav, SIGNAL(slugsFilteredData(int,const mavlink_filtered_data_t&)),this,SLOT(slugsFilteredDataChanged(int,const mavlink_filtered_data_t&)));
connect(slugsMav, SIGNAL(slugsGPSDateTime(int,const mavlink_gps_date_time_t&)),this,SLOT(slugsGPSDateTimeChanged(int,const mavlink_gps_date_time_t&))); connect(slugsMav, SIGNAL(slugsGPSDateTime(int,const mavlink_gps_date_time_t&)),this,SLOT(slugsGPSDateTimeChanged(int,const mavlink_gps_date_time_t&)));
//connect(slugsMav,SIGNAL(slugsAirData(int,mavlink_air_data_t&)),this,SLOT())
#endif // MAVLINK_ENABLED_SLUGS #endif // MAVLINK_ENABLED_SLUGS
// Set this UAS as active if it is the first one // Set this UAS as active if it is the first one
...@@ -148,6 +149,7 @@ void SlugsDataSensorView::slugsSensorBiasChanged(int systemId, ...@@ -148,6 +149,7 @@ void SlugsDataSensorView::slugsSensorBiasChanged(int systemId,
} }
void SlugsDataSensorView::slugsDiagnosticMessageChanged(int systemId, void SlugsDataSensorView::slugsDiagnosticMessageChanged(int systemId,
const mavlink_diagnostic_t& diagnostic){ const mavlink_diagnostic_t& diagnostic){
Q_UNUSED(systemId); Q_UNUSED(systemId);
...@@ -240,6 +242,18 @@ void SlugsDataSensorView::slugsGPSDateTimeChanged(int systemId, ...@@ -240,6 +242,18 @@ void SlugsDataSensorView::slugsGPSDateTimeChanged(int systemId,
ui->m_GpsSat->setText(QString::number(gpsDateTime.visSat)); ui->m_GpsSat->setText(QString::number(gpsDateTime.visSat));
} }
/**
* @brief Updates the air data widget - 171
*/
void SlugsDataSensorView::slugsAirDataChanged(int systemId, const mavlink_air_data_t &airData)
{
Q_UNUSED(systemId);
//ToDo add widget to view value
}
#endif // MAVLINK_ENABLED_SLUGS #endif // MAVLINK_ENABLED_SLUGS
...@@ -114,52 +114,60 @@ public slots: ...@@ -114,52 +114,60 @@ public slots:
double lon, double lon,
double alt, double alt,
quint64 time); quint64 time);
/**
* @brief Updates the CPU load widget - 170
*/
void slugsCpuLoadChanged(int systemId,
const mavlink_cpu_load_t& cpuLoad);
/** /**
* @brief Updates the sensor bias widget * @brief Updates the air data widget - 171
*/
void slugsAirDataChanged(int systemId,
const mavlink_air_data_t& airData);
/**
* @brief Updates the sensor bias widget - 172
*/ */
void slugsSensorBiasChanged(int systemId, void slugsSensorBiasChanged(int systemId,
const mavlink_sensor_bias_t& sensorBias); const mavlink_sensor_bias_t& sensorBias);
/** /**
* @brief Updates the diagnostic widget * @brief Updates the diagnostic widget - 173
*/ */
void slugsDiagnosticMessageChanged(int systemId, void slugsDiagnosticMessageChanged(int systemId,
const mavlink_diagnostic_t& diagnostic); const mavlink_diagnostic_t& diagnostic);
/**
* @brief Updates the CPU load widget
*/
void slugsCpuLoadChanged(int systemId,
const mavlink_cpu_load_t& cpuLoad);
/** /**
* @brief Updates the Navigation widget * @brief Updates the Navigation widget - 176
*/ */
void slugsNavegationChanged(int systemId, void slugsNavegationChanged(int systemId,
const mavlink_slugs_navigation_t& slugsNavigation); const mavlink_slugs_navigation_t& slugsNavigation);
/** /**
* @brief Updates the Data Log widget * @brief Updates the Data Log widget - 177
*/ */
void slugsDataLogChanged(int systemId, void slugsDataLogChanged(int systemId,
const mavlink_data_log_t& dataLog); const mavlink_data_log_t& dataLog);
/** /**
* @brief Updates the PWM Commands widget * @brief Updates the PWM Commands widget - 175
*/ */
void slugsPWMChanged(int systemId, void slugsPWMChanged(int systemId,
const mavlink_pwm_commands_t& pwmCommands); const mavlink_pwm_commands_t& pwmCommands);
/** /**
* @brief Updates the filtered sensor measurements widget * @brief Updates the filtered sensor measurements widget - 178
*/ */
void slugsFilteredDataChanged(int systemId, void slugsFilteredDataChanged(int systemId,
const mavlink_filtered_data_t& filteredData); const mavlink_filtered_data_t& filteredData);
/** /**
* @brief Updates the gps Date Time widget * @brief Updates the gps Date Time widget - 179
*/ */
void slugsGPSDateTimeChanged(int systemId, void slugsGPSDateTimeChanged(int systemId,
const mavlink_gps_date_time_t& gpsDateTime); const mavlink_gps_date_time_t& gpsDateTime);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>399</width> <width>399</width>
<height>667</height> <height>604</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
...@@ -24,18 +24,18 @@ ...@@ -24,18 +24,18 @@
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>399</width>
<height>16777215</height> <height>604</height>
</size> </size>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_17"> <layout class="QGridLayout" name="gridLayout_23">
<item> <item row="0" column="0">
<widget class="QTabWidget" name="SlugsSensorView_tabWidget"> <widget class="QTabWidget" name="SlugsSensorView_tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>2</number>
</property> </property>
<widget class="QWidget" name="tab"> <widget class="QWidget" name="tab">
<attribute name="title"> <attribute name="title">
...@@ -989,7 +989,7 @@ ...@@ -989,7 +989,7 @@
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>20</width> <width>20</width>
<height>13</height> <height>5</height>
</size> </size>
</property> </property>
</spacer> </spacer>
...@@ -1791,8 +1791,8 @@ ...@@ -1791,8 +1791,8 @@
<attribute name="title"> <attribute name="title">
<string>Tab 2</string> <string>Tab 2</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_11"> <layout class="QGridLayout" name="gridLayout_22">
<item> <item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_8"> <layout class="QVBoxLayout" name="verticalLayout_8">
<item> <item>
<widget class="QGroupBox" name="gpsData_groupBox"> <widget class="QGroupBox" name="gpsData_groupBox">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment