Telescope Control Library

Dependents:   PushToGo-F429

Mount.h

Committer:
caoyu@caoyuan9642-desktop.MIT.EDU
Date:
2018-09-24
Revision:
19:fd854309cb4c
Parent:
2:2ee28add0821

File content as of revision 19:fd854309cb4c:

#ifndef MOUNT_H_
#define MOUNT_H_

typedef enum
{
	MOUNT_STOPPED = 0,
	MOUNT_SLEWING = 1,
	MOUNT_TRACKING = 2,
	MOUNT_NUDGING = 4,
	MOUNT_NUDGING_TRACKING = MOUNT_TRACKING | MOUNT_NUDGING,
	
	// Modifiers, will only appear in getStatus() but not in status itself
	MOUNT_GUIDING = 8,
} mountstatus_t;

class Mount
{
protected:
	mountstatus_t status;

public:
	Mount() :
			status(MOUNT_STOPPED)
	{
	}

	virtual ~Mount()
	{
	}

	virtual mountstatus_t getStatus()
	{
		return status;
	}
};

#endif /*MOUNT_H_*/