mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
Merge remote-tracking branch 'origin/next' into Brian-PipXtreme-V2
This commit is contained in:
commit
ce9d96e1b1
8
Makefile
8
Makefile
@ -630,7 +630,7 @@ all_$(1)_clean: $$(addsuffix _clean, $$(filter bu_$(1), $$(BU_TARGETS)))
|
|||||||
all_$(1)_clean: $$(addsuffix _clean, $$(filter ef_$(1), $$(EF_TARGETS)))
|
all_$(1)_clean: $$(addsuffix _clean, $$(filter ef_$(1), $$(EF_TARGETS)))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ALL_BOARDS := coptercontrol pipxtreme
|
ALL_BOARDS := coptercontrol pipxtreme simposix
|
||||||
|
|
||||||
# Friendly names of each board (used to find source tree)
|
# Friendly names of each board (used to find source tree)
|
||||||
coptercontrol_friendly := CopterControl
|
coptercontrol_friendly := CopterControl
|
||||||
@ -638,6 +638,12 @@ pipxtreme_friendly := PipXtreme
|
|||||||
revolution_friendly := Revolution
|
revolution_friendly := Revolution
|
||||||
simposix_friendly := SimPosix
|
simposix_friendly := SimPosix
|
||||||
|
|
||||||
|
# SimPosix only builds on Linux so drop it from the list for
|
||||||
|
# all other platforms.
|
||||||
|
ifneq ($(UNAME), Linux)
|
||||||
|
ALL_BOARDS := $(filter-out simposix, $(ALL_BOARDS))
|
||||||
|
endif
|
||||||
|
|
||||||
# Start out assuming that we'll build fw, bl and bu for all boards
|
# Start out assuming that we'll build fw, bl and bu for all boards
|
||||||
FW_BOARDS := $(ALL_BOARDS)
|
FW_BOARDS := $(ALL_BOARDS)
|
||||||
BL_BOARDS := $(ALL_BOARDS)
|
BL_BOARDS := $(ALL_BOARDS)
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
#define STACK_SIZE_BYTES 924
|
#define STACK_SIZE_BYTES 924
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TASK_PRIORITY (tskIDLE_PRIORITY+2)
|
#define TASK_PRIORITY (tskIDLE_PRIORITY+1)
|
||||||
|
|
||||||
// Private types
|
// Private types
|
||||||
|
|
||||||
|
@ -329,10 +329,14 @@ int32_t PIOS_Flash_Jedec_EraseChip()
|
|||||||
PIOS_Flash_Jedec_ReleaseBus();
|
PIOS_Flash_Jedec_ReleaseBus();
|
||||||
|
|
||||||
// Keep polling when bus is busy too
|
// Keep polling when bus is busy too
|
||||||
|
int i = 0;
|
||||||
while(PIOS_Flash_Jedec_Busy() != 0) {
|
while(PIOS_Flash_Jedec_Busy() != 0) {
|
||||||
#if defined(FLASH_FREERTOS)
|
#if defined(PIOS_INCLUDE_FREERTOS)
|
||||||
vTaskDelay(1);
|
vTaskDelay(1);
|
||||||
#endif
|
#endif
|
||||||
|
if ((i++) % 100 == 0)
|
||||||
|
PIOS_LED_Toggle(PIOS_LED_HEARTBEAT);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -71,16 +71,10 @@ ConfigOutputWidget::ConfigOutputWidget(QWidget *parent) : ConfigTaskWidget(paren
|
|||||||
|
|
||||||
connect(m_config->channelOutTest, SIGNAL(toggled(bool)), this, SLOT(runChannelTests(bool)));
|
connect(m_config->channelOutTest, SIGNAL(toggled(bool)), this, SLOT(runChannelTests(bool)));
|
||||||
|
|
||||||
|
|
||||||
firstUpdate = true;
|
|
||||||
|
|
||||||
// Configure the task widget
|
// Configure the task widget
|
||||||
// Connect the help button
|
// Connect the help button
|
||||||
connect(m_config->outputHelp, SIGNAL(clicked()), this, SLOT(openHelp()));
|
connect(m_config->outputHelp, SIGNAL(clicked()), this, SLOT(openHelp()));
|
||||||
|
|
||||||
// Add custom handling of displaying things
|
|
||||||
connect(this,SIGNAL(refreshWidgetsValuesRequested()), this, SLOT(refreshOutputWidgetsValues()));
|
|
||||||
|
|
||||||
addApplySaveButtons(m_config->saveRCOutputToRAM,m_config->saveRCOutputToSD);
|
addApplySaveButtons(m_config->saveRCOutputToRAM,m_config->saveRCOutputToSD);
|
||||||
|
|
||||||
// Track the ActuatorSettings object
|
// Track the ActuatorSettings object
|
||||||
@ -125,7 +119,6 @@ ConfigOutputWidget::~ConfigOutputWidget()
|
|||||||
*/
|
*/
|
||||||
void ConfigOutputWidget::runChannelTests(bool state)
|
void ConfigOutputWidget::runChannelTests(bool state)
|
||||||
{
|
{
|
||||||
qDebug()<<"configoutputwidget runChannelTests"<<state;
|
|
||||||
SystemAlarms * systemAlarmsObj = SystemAlarms::GetInstance(getObjectManager());
|
SystemAlarms * systemAlarmsObj = SystemAlarms::GetInstance(getObjectManager());
|
||||||
SystemAlarms::DataFields systemAlarms = systemAlarmsObj->getData();
|
SystemAlarms::DataFields systemAlarms = systemAlarmsObj->getData();
|
||||||
|
|
||||||
|
@ -63,8 +63,6 @@ private:
|
|||||||
|
|
||||||
UAVObject::Metadata accInitialData;
|
UAVObject::Metadata accInitialData;
|
||||||
|
|
||||||
bool firstUpdate;
|
|
||||||
|
|
||||||
bool wasItMe;
|
bool wasItMe;
|
||||||
private slots:
|
private slots:
|
||||||
void stopTests();
|
void stopTests();
|
||||||
|
@ -145,7 +145,7 @@ void ConfigPlugin::eraseAllSettings()
|
|||||||
// based on UAVO meta data
|
// based on UAVO meta data
|
||||||
objper->setData(data);
|
objper->setData(data);
|
||||||
objper->updated();
|
objper->updated();
|
||||||
QTimer::singleShot(6000,this,SLOT(eraseFailed()));
|
QTimer::singleShot(FLASH_ERASE_TIMEOUT_MS,this,SLOT(eraseFailed()));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ void ConfigPlugin::eraseFailed()
|
|||||||
data.Selection = ObjectPersistence::SELECTION_ALLSETTINGS;
|
data.Selection = ObjectPersistence::SELECTION_ALLSETTINGS;
|
||||||
objper->setData(data);
|
objper->setData(data);
|
||||||
objper->updated();
|
objper->updated();
|
||||||
QTimer::singleShot(1500,this,SLOT(eraseFailed()));
|
QTimer::singleShot(FLASH_ERASE_TIMEOUT_MS,this,SLOT(eraseFailed()));
|
||||||
} else {
|
} else {
|
||||||
disconnect(objper, SIGNAL(objectUpdated(UAVObject*)), this, SLOT(eraseDone(UAVObject *)));
|
disconnect(objper, SIGNAL(objectUpdated(UAVObject*)), this, SLOT(eraseDone(UAVObject *)));
|
||||||
QMessageBox msgBox;
|
QMessageBox msgBox;
|
||||||
@ -190,7 +190,7 @@ void ConfigPlugin::eraseDone(UAVObject * obj)
|
|||||||
if (data.Operation == ObjectPersistence::OPERATION_COMPLETED) {
|
if (data.Operation == ObjectPersistence::OPERATION_COMPLETED) {
|
||||||
settingsErased = true;
|
settingsErased = true;
|
||||||
msgBox.setText(tr("Settings are now erased."));
|
msgBox.setText(tr("Settings are now erased."));
|
||||||
msgBox.setInformativeText(tr("Please now power-cycle your board to complete reset."));
|
msgBox.setInformativeText(tr("Please wait for the status LED to begin flashing regularly (up to a minute) then power-cycle your board to complete reset."));
|
||||||
} else {
|
} else {
|
||||||
msgBox.setText(tr("Error trying to erase settings."));
|
msgBox.setText(tr("Error trying to erase settings."));
|
||||||
msgBox.setInformativeText(tr("Power-cycle your board after removing all blades. Settings might be inconsistent."));
|
msgBox.setInformativeText(tr("Power-cycle your board after removing all blades. Settings might be inconsistent."));
|
||||||
|
@ -65,6 +65,8 @@ private slots:
|
|||||||
Core::Command* cmd;
|
Core::Command* cmd;
|
||||||
bool settingsErased;
|
bool settingsErased;
|
||||||
|
|
||||||
|
static const int FLASH_ERASE_TIMEOUT_MS = 45000;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIGPLUGIN_H
|
#endif // CONFIGPLUGIN_H
|
||||||
|
@ -204,14 +204,13 @@ ConfigRevoWidget::ConfigRevoWidget(QWidget *parent) :
|
|||||||
mag_z->setTransform(QTransform::fromScale(1,0),true);
|
mag_z->setTransform(QTransform::fromScale(1,0),true);
|
||||||
|
|
||||||
// Connect the signals
|
// Connect the signals
|
||||||
connect(m_ui->ahrsCalibStart, SIGNAL(clicked()), this, SLOT(measureNoise()));
|
|
||||||
connect(m_ui->accelBiasStart, SIGNAL(clicked()), this, SLOT(launchAccelBiasCalibration()));
|
connect(m_ui->accelBiasStart, SIGNAL(clicked()), this, SLOT(launchAccelBiasCalibration()));
|
||||||
|
|
||||||
RevoCalibration * revoCalibration = RevoCalibration::GetInstance(getObjectManager());
|
RevoCalibration * revoCalibration = RevoCalibration::GetInstance(getObjectManager());
|
||||||
Q_ASSERT(revoCalibration);
|
Q_ASSERT(revoCalibration);
|
||||||
connect(revoCalibration, SIGNAL(objectUpdated(UAVObject*)), this, SLOT(refreshValues()));
|
connect(revoCalibration, SIGNAL(objectUpdated(UAVObject*)), this, SLOT(refreshValues()));
|
||||||
|
|
||||||
connect(m_ui->ahrsSettingsSaveRAM, SIGNAL(clicked()), this, SLOT(SettingsToRam()));
|
connect(m_ui->ahrsSettingsSaveRAM, SIGNAL(clicked()), this, SLOT(SettingsToRAM()));
|
||||||
connect(m_ui->ahrsSettingsSaveSD, SIGNAL(clicked()), this, SLOT(SettingsToFlash()));
|
connect(m_ui->ahrsSettingsSaveSD, SIGNAL(clicked()), this, SLOT(SettingsToFlash()));
|
||||||
connect(m_ui->sixPointsStart, SIGNAL(clicked()), this, SLOT(sixPointCalibrationMode()));
|
connect(m_ui->sixPointsStart, SIGNAL(clicked()), this, SLOT(sixPointCalibrationMode()));
|
||||||
connect(m_ui->sixPointsSave, SIGNAL(clicked()), this, SLOT(savePositionData()));
|
connect(m_ui->sixPointsSave, SIGNAL(clicked()), this, SLOT(savePositionData()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user