Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "healpixmirror"]
path = healpixmirror
path = healpix
url = https://github.com/healpy/healpixmirror.git
4 changes: 2 additions & 2 deletions CelestronOriginSimulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,14 +480,14 @@ void CelestronOriginSimulator::handleNewConnection() {

void CelestronOriginSimulator::sendBroadcast() {
// Prepare the broadcast message
QString message = QString("Identity:Origin-") + QLatin1String(std::to_string(broadcast_id)) + QString("Z Origin IP Address = %1");
QString message = QString("Identity:Origin-%1Z Origin IP Address = %2");

// Get our IP addresses
QList<QHostAddress> ipAddresses = QNetworkInterface::allAddresses();

for (const QHostAddress &address : ipAddresses) {
if (address.protocol() == QAbstractSocket::IPv4Protocol && address != QHostAddress::LocalHost) {
QString broadcastMessage = message.arg(address.toString());
QString broadcastMessage = message.arg(broadcast_id).arg(address.toString());
if (true) qDebug() << broadcastMessage;

// Send broadcast on all network interfaces
Expand Down
25 changes: 10 additions & 15 deletions OriginSimulator.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ CONFIG += c++11

TARGET = OriginSimulator
TEMPLATE = app
INCLUDEPATH += healpixmirror/src/cxx/Healpix_cxx
INCLUDEPATH += healpixmirror/src/cxx/cxxsupport
INCLUDEPATH += healpix/src/cxx/Healpix_cxx
INCLUDEPATH += healpix/src/cxx/cxxsupport
LIBS += -lnova -ltiff
# For Apple Silicon Macs, use:
INCLUDEPATH += /opt/homebrew/include
Expand All @@ -21,18 +21,12 @@ SOURCES += \
StatusSender.cpp \
ProperHipsClient.cpp \
EnhancedMosaicCreator.cpp \
healpixmirror/src/cxx/Healpix_cxx/healpix_base.cc \
healpixmirror/src/cxx/Healpix_cxx/healpix_tables.cc \
healpixmirror/src/cxx/cxxsupport/geom_utils.cc \
healpixmirror/src/cxx/cxxsupport/string_utils.cc \
healpixmirror/src/cxx/cxxsupport/error_handling.cc \
healpixmirror/src/cxx/cxxsupport/pointing.cc \
moc_CelestronOriginSimulator.cpp \
moc_CommandHandler.cpp \
moc_EnhancedMosaicCreator.cpp \
moc_ProperHipsClient.cpp \
moc_StatusSender.cpp \
moc_WebSocketConnection.cpp \
healpix/src/cxx/Healpix_cxx/healpix_base.cc \
healpix/src/cxx/Healpix_cxx/healpix_tables.cc \
healpix/src/cxx/cxxsupport/geom_utils.cc \
healpix/src/cxx/cxxsupport/string_utils.cc \
healpix/src/cxx/cxxsupport/error_handling.cc \
healpix/src/cxx/cxxsupport/pointing.cc \

# Headers
HEADERS += \
Expand All @@ -42,7 +36,8 @@ HEADERS += \
CommandHandler.h \
TiffImageGenerator.h \
StatusSender.h \
moc_predefs.h \
ProperHipsClient.h \
EnhancedMosaicCreator.h

# For Xcode project generation
macx {
Expand Down
1 change: 0 additions & 1 deletion TiffImageGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ bool TiffImageGenerator::writeTiff16BitRGB(const QString& outputPath,
TIFFSetField(tif, TIFFTAG_SOFTWARE, softwareTag.toUtf8().constData());

// Write image data row by row
size_t rowSize = width * SAMPLES_PER_PIXEL * sizeof(uint16_t);

for (int row = 0; row < height; row++) {
const uint16_t* rowData = imageData + (row * width * SAMPLES_PER_PIXEL);
Expand Down
1 change: 1 addition & 0 deletions healpix
Submodule healpix added at 1c20da
1 change: 0 additions & 1 deletion healpixmirror
Submodule healpixmirror deleted from a44dd3
203 changes: 0 additions & 203 deletions moc_CelestronOriginSimulator.cpp

This file was deleted.

Loading