//{{AFX_INCLUDES()
#include "eightball2.h"
#include "compass.h"
//}}AFX_INCLUDES
#if !defined(AFX_AHRSDLG_H__87D8EC10_BD65_4C90_BC4B_9B1E02C1EC4B__INCLUDED_)
#define AFX_AHRSDLG_H__87D8EC10_BD65_4C90_BC4B_9B1E02C1EC4B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AhrsDlg.h : header file
//
#include "DataRecipient.h"
#include "DeviceDlg.h"
#include "StatusStatic.h"
#include "TestDlg.h"

class CDashboardRecipient;

/////////////////////////////////////////////////////////////////////////////
// CAhrsDlg dialog

class CAhrsDlg : public CTestDlg
{
// Construction
public:
	CAhrsDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CAhrsDlg)
	enum { IDD = IDD_AHRS_DIALOG };
	CEightBall2	m_attitude;
	CCompass	m_yaw;
	double	m_pitchIndicator;
	double	m_pitchRateIndicator;
	double	m_rollIndicator;
	double	m_rollRateIndicator;
	double	m_yawIndicator;
	double	m_yawRateIndicator;
	long	m_CalStatColor;
	//}}AFX_DATA

	// My public members
	void requestUpdate();
	void resetDialog();
	void stopRequests();

	void setAttitude(double roll, double pitch, double yaw, double rollRate,
		double pitchRate, double yawRate);


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAhrsDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// My members
	void initSubClassDlg();

	// Generated message map functions
	//{{AFX_MSG(CAhrsDlg)
	afx_msg void OnCancelMode();
	afx_msg void OnCalibrate();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AHRSDLG_H__87D8EC10_BD65_4C90_BC4B_9B1E02C1EC4B__INCLUDED_)
