TelescopeControlGlobals.hpp   TelescopeControlGlobals.hpp 
skipping to change at line 44 skipping to change at line 44
#define DEFAULT_TCP_PORT_FOR_SLOT(X) (BASE_TCP_PORT + X) #define DEFAULT_TCP_PORT_FOR_SLOT(X) (BASE_TCP_PORT + X)
const int DEFAULT_TCP_PORT = DEFAULT_TCP_PORT_FOR_SLOT(MIN_SLOT_NUMB ER); const int DEFAULT_TCP_PORT = DEFAULT_TCP_PORT_FOR_SLOT(MIN_SLOT_NUMB ER);
const int MAX_CIRCLE_COUNT = 10; const int MAX_CIRCLE_COUNT = 10;
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
const QString TELESCOPE_SERVER_PATH = QString("/%1.exe"); const QString TELESCOPE_SERVER_PATH = QString("/%1.exe");
const QString SERIAL_PORT_PREFIX = QString("COM"); const QString SERIAL_PORT_PREFIX = QString("COM");
#else #else
const QString TELESCOPE_SERVER_PATH = QString("/%1"); const QString TELESCOPE_SERVER_PATH = QString("/%1");
const QString SERIAL_PORT_PREFIX = QString("/dev/"); const QString SERIAL_PORT_PREFIX = QString("/");
#endif #endif
const int DEFAULT_DELAY = 500000; //Microseconds; == 0.5 seconds const int DEFAULT_DELAY = 500000; //Microseconds; == 0.5 seconds
#define MICROSECONDS_FROM_SECONDS(X) (X * 1000000) #define MICROSECONDS_FROM_SECONDS(X) (X * 1000000)
#define SECONDS_FROM_MICROSECONDS(X) ((double) X / 1000000) #define SECONDS_FROM_MICROSECONDS(X) ((double) X / 1000000)
enum ConnectionType { enum ConnectionType {
ConnectionNA = 0, ConnectionNA = 0,
ConnectionVirtual, ConnectionVirtual,
ConnectionInternal, ConnectionInternal,
skipping to change at line 69 skipping to change at line 69
struct DeviceModel struct DeviceModel
{ {
QString name; QString name;
QString description; QString description;
QString server; QString server;
int defaultDelay; int defaultDelay;
bool useExecutable; bool useExecutable;
}; };
#ifdef Q_OS_WIN32
const QStringList SERIAL_PORT_NAMES = QString("COM1 COM2 COM3 COM4")
.split(' ', QString::SkipEmptyParts);
#elif defined(Q_OS_MAC)
const QStringList SERIAL_PORT_NAMES = QString("/dev/ ").split(' ', Q
String::SkipEmptyParts);
#else
const QStringList SERIAL_PORT_NAMES = QString("/dev/ttyS0 /dev/ttyS1
/dev/ttyS2 /dev/ttyS3 /dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3"
).split(' ', QString::SkipEmptyParts);
#endif
//! List of the telescope servers that don't need external executabl es //! List of the telescope servers that don't need external executabl es
const QStringList EMBEDDED_TELESCOPE_SERVERS = QString("TelescopeSer verDummy TelescopeServerLx200 TelescopeServerNexStar").split(' ', QString:: SkipEmptyParts); const QStringList EMBEDDED_TELESCOPE_SERVERS = QString("TelescopeSer verDummy TelescopeServerLx200 TelescopeServerNexStar").split(' ', QString:: SkipEmptyParts);
}; };
#endif //_TELESCOPE_CONTROL_GLOBALS_ #endif //_TELESCOPE_CONTROL_GLOBALS_
 End of changes. 2 change blocks. 
13 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/