Issue #515 fixed. Standalone Qt based simu added. xsimulatordialog and

simulatordialog merged
This commit is contained in:
Bertrand Songis
2014-02-14 18:34:01 +01:00
parent 0b9602a8da
commit 0d76f2461a
48 changed files with 4112 additions and 9488 deletions
@@ -107,7 +107,7 @@ uint8_t getStickMode()
using namespace Open9x;
Open9xSimulator::Open9xSimulator(Open9xInterface * open9xInterface):
Open9xSimulator::Open9xSimulator(OpenTxInterface * open9xInterface):
open9xInterface(open9xInterface)
{
#define INIT_IMPORT
@@ -132,13 +132,20 @@ bool Open9xSimulator::lcdChanged(bool & lightEnable)
#include "simulatorimport.h"
}
void Open9xSimulator::start(RadioData &radioData, bool tests)
void Open9xSimulator::start(QByteArray & eeprom, bool tests)
{
open9xInterface->save(&Open9x::eeprom[0], radioData, SIMU_STOCK_VARIANTS);
memcpy(&Open9x::eeprom[0], eeprom.data(), 2048);
StartEepromThread(NULL);
StartMainThread(tests);
}
void Open9xSimulator::start(const char * filename, bool tests)
{
// open9xInterface->save(&Open9x::eeprom[0], radioData, SIMU_STOCK_VARIANTS);
StartEepromThread(filename);
StartMainThread(tests);
}
void Open9xSimulator::stop()
{
StopMainThread();