MainWindow Class Reference

Unsorted heap of all kind of stuff. More...

List of all members.

Public Slots

void on_actionQuit_triggered ()
void on_actionAbout_Aspect_triggered ()
void on_actionAbout_Qt_triggered ()
void on_actionLog_View_triggered ()
void on_actionSettings_triggered ()
void on_actionMount_triggered ()
void settingsChanged ()
void mcuSerialStatus (bool bOpen, McuSerial::Status eStatus)
void mcuSerialFirmware (const QString &qsFirmware)
void mcuSerialBusy (bool bBusy)
void on_mcuPort_activated (const QString &qsPort)
void on_mcuSettingsTracking_activated (int nSpeed)
void on_mcuSettingsPec_activated (int nIndex)
void on_mcuSettingsIntelly_activated (int nIndex)
void on_mcuSettingsRefresh_clicked ()
void on_peFileOpen_clicked ()
void on_peFileFollow_clicked ()
void on_peProcMode_activated (int nMode)
void on_peProcBeg_valueChanged (int nBeg)
void on_peProcEnd_valueChanged (int nEnd)
void on_peProcCombining_activated (int nMethod)
void on_peProcSmoothWidth_valueChanged (int nWidth)
void on_peProcDrift_valueChanged (double dfDrift)
void on_peProcDecl_valueChanged (double dfDeclination)
void on_peProcScale_valueChanged (double dfScale)
void on_peProcOffset_valueChanged (double dfOffset)
void recalcPeData ()
void on_pecTableAggress_valueChanged (int nAggress)
void on_pecTableFactor_valueChanged (int nFactor)
void on_pecOpenTable_clicked ()
void on_pecSaveTable_clicked ()
void on_pecGetTable_clicked ()
void on_pecPutTable_clicked ()
void on_pecVerifyTable_clicked ()
void on_pecGenFirmware_activated (int nFirmware)
void on_pecGenWormWheel_valueChanged (int nTeeth)
void on_pecMountQuery_clicked ()
void on_pecCalculate_clicked ()
void on_pecFit_clicked ()
void on_pecGraphOffset_valueChanged (double dfOffset)
void changePecItem (QStandardItem *pItem)
void on_pecProfileOffset_valueChanged (double dfOffset)
void on_pecProfileDrift_valueChanged (double dfDrift)
void on_pecProfileOpen_clicked ()
void on_pecProfileSave_clicked ()
void on_mcuGuideEast_clicked ()
void on_mcuGuideWest_clicked ()
void on_mcuStart_clicked ()
void on_mcuPause_clicked ()
void mcuTimer ()
void on_toggleChartPeRaw_toggled (bool bOn)
void on_toggleChartPeProcessed_toggled (bool bOn)
void on_toggleChartPecIdeal_toggled (bool bOn)
void on_toggleChartPecTable_toggled (bool bOn)
void on_toggleChartPecProfile_toggled (bool bOn)

Private Types

enum  Dir { east, west, stop }

Private Member Functions

bool mcuCommunicationBegin ()
void mcuCommunicationEnd ()
bool openPeFile (const QString &qsFileName)
bool openPecFile (const QString &qsFileName)
bool savePecFile (const QString &qsFileName)
void getPecTable ()
void putPecTable ()
void verifyPecTable ()
void calcPecParams ()
double getPecPosScale (int nFirmware)
void calcPecTable ()
void fitPecTable ()
void fillPecModel ()
void clearPecProfile ()
bool startPecProfile (bool bSetSpeed)
void stopPecProfile ()
bool openPecProfileFile (const QString &qsFileName)
bool savePecProfileFile (const QString &qsFileName)
void recalcPeChart ()

Private Attributes

Ui::MainWindow * m_pUi
bool m_bEnableTabProfile
int m_nTabProfileIndex
QString m_qsTabProfileLabel
bool m_bEnableMenuMount
StatusBar * m_pStatusBar
LogDialogm_pLog
SettingsDialogm_pSettings
MountDialogm_pMount
DataPeMcu m_oPeData
int m_nPeSampleNum
double m_dfSiderealDay
int m_nFirmware
int m_nWormWheelTeeth
double m_dfPecPosScale
PecData m_oPecTable
Dir m_eGuideDir
QList< PeRawSample > m_lstPecProfile
QStandardItemModel * m_pPecModel
QStandardItemModel * m_pPecProfileModel
QGraphicsScene * m_pPeChart
QTimer * m_pMcuTimer
QString m_qsSerialPort
McuProxy * m_pMcuProxy


Detailed Description

Unsorted heap of all kind of stuff.

MainWindow is the GUI main window.

Todo:
sort out stuff that is not related to main window (pe and pec handling and calculations, graphs, ...)


Member Function Documentation

void MainWindow::getPecTable (  )  [private]

Download PEC table from MCU via serial line

Todo:
fix hang if port is not available

make port configurable

evaluate return values and do some sane error handling here ...

void MainWindow::putPecTable (  )  [private]

Upload PEC table to MCU via serial line

Todo:
show message box if opening port failed

evaluate return values and do some sane error handling here ...

query and display PEC status after uploading PEC table

verify if writing order is ok (factor, save to EEPROM, PEC values, save PEC)

void MainWindow::verifyPecTable (  )  [private]

Verify PEC table against PEC table on MCU

Todo:
implement

void MainWindow::calcPecParams (  )  [private]

Todo:
: rethink presentation and handling of parameters that affect more than current tab page (e.g. worm wheel teeth)

void MainWindow::calcPecTable (  )  [private]

Calculate PEC table from processed PE data

See also:
PecData::calc()
Todo:
make sure that processed PE data is valid

void MainWindow::fitPecTable (  )  [private]

Shift PEC table sidewards such that it best fits processed PE data

See also:
PecData::calc()

void MainWindow::recalcPeChart (  )  [private]

Recalculate and redraw all kind of charts

Todo:
move this out of MainWindow

implement PEC profile graph properly


The documentation for this class was generated from the following files:
Generated on Sun Jun 3 16:45:47 2007 for Aspect by  doxygen 1.5.1