Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
a337a4d
Rework Sight dialog for Lunar sights
stelian42 Sep 20, 2025
f153aee
Save and Load Lunar measurements/limb from Sights.xml
stelian42 Sep 20, 2025
545a847
Implement lunar UTC calculation
stelian42 Sep 21, 2025
10a3cd3
Make ParallaxCorrection a positive value
stelian42 Sep 21, 2025
2f6e59e
Change Delta symbol with D letter
stelian42 Sep 22, 2025
b3f3b24
First shot at lunar tests
stelian42 Sep 22, 2025
b70808a
Implement FindBody dialog for Lunars.
stelian42 Sep 22, 2025
c1c9fb6
More lunar tests
stelian42 Sep 22, 2025
9588edd
Make only the "Revised UTC" column growable
stelian42 Sep 22, 2025
1acfef6
Add missing events on Lunar Hs fields
stelian42 Sep 22, 2025
43403c0
Temporary hack for trying to build with MSVC...
stelian42 Sep 23, 2025
94d4bf9
Hopefully fix MSVC compilation
stelian42 Sep 23, 2025
d5c72ae
Round seconds to the nearest one in lunar calculations
stelian42 Sep 24, 2025
24a7cb2
2.4.65.1 to deploy
rgleason Sep 25, 2025
b256fc1
UI improvements
stelian42 Oct 6, 2025
259c37f
Keep 5 decimals for Lunar altitudes
stelian42 Oct 7, 2025
666d471
Fix FindDialog intercept when Lunars are used
stelian42 Oct 7, 2025
325c0c7
clang-format source code formatting
stelian42 Oct 7, 2025
32a676a
2.4.65.2 + lunar-2
rgleason Oct 8, 2025
d8757ab
Fix pressure being a double with 2 decimal digits
stelian42 Oct 8, 2025
4540f15
Widen index error field
stelian42 Oct 8, 2025
77451da
Small UI fixes and use 5 digits for all Lat/Lon
stelian42 Oct 9, 2025
be83e7c
2.4.65.3 + lunar2
rgleason Oct 13, 2025
c64db7d
2.4.65.4
stelian42 Oct 14, 2025
6b12d66
Retain 2 decimal digits for eye height as well
stelian42 Oct 16, 2025
26796c6
Merge pull request #207 from stelian42/improve
stelian42 Oct 16, 2025
0df1f79
2.4.65.5+lunar3
rgleason Oct 17, 2025
db31705
add checking in cs-upload.sh.in
rgleason Oct 17, 2025
293830c
Test commit for cloudsmith deploy testing
stelian42 Oct 18, 2025
7654dd4
Allow entering measurements in many different ways
stelian42 Oct 18, 2025
ce79078
Small UI fixes for FindDialog
stelian42 Oct 21, 2025
26f5f85
2.4.65.6
stelian42 Oct 21, 2025
f39f136
Implement Dip Short and Artificial Horizon capabilities
stelian42 Nov 7, 2025
53cb637
Fix precision loss when writing Sights.xml
stelian42 Nov 9, 2025
5821b7f
Include local plugin_dc copy
stelian42 Nov 10, 2025
84f6ae3
Rework Android support
stelian42 Nov 10, 2025
a31d50c
2.4.65.7
stelian42 Nov 10, 2025
cd76a7c
Fix saving of ArtificialHorizon setting in Sights.xml
stelian42 Nov 11, 2025
77c7ec1
Fix transparency setting for new sights.
stelian42 Nov 11, 2025
4b39130
Fix Dip Short calculation
stelian42 Nov 11, 2025
d322415
2.4.65.8
stelian42 Nov 11, 2025
8fd9e10
2.4.65.9
stelian42 Nov 11, 2025
7b1808d
Draw a fixed size (2cm) fix cross instead of 2° one
stelian42 Nov 11, 2025
f263d4e
Use Bowditch formula for Dip Short
stelian42 Nov 12, 2025
016a946
Implement backsight sights
stelian42 Nov 12, 2025
9132614
TP update 1.0.345
rgleason Nov 13, 2025
93737c6
Remove opencpn-libs submodule.
rgleason Nov 13, 2025
7377a71
Adding revised opencpn-libs submodule main
rgleason Nov 13, 2025
418158e
2.4.65.10 + TP 1.0.345
rgleason Nov 13, 2025
a571703
Put back local plugin_dc copy lost when updating TP
stelian42 Nov 13, 2025
b1d6dcf
2.4.65.11
stelian42 Nov 13, 2025
b5488cc
Save lunar time correction into Sights.xml
stelian42 Nov 14, 2025
28deacd
Fix bad usage of float instead of double.
stelian42 Nov 14, 2025
249a58f
First implementation of algorithm for estimating Hs
stelian42 Nov 14, 2025
9ea6d5e
2.4.65.12
stelian42 Nov 14, 2025
b87bb3d
Fix dip/ic correction error for deriving Hs
stelian42 Nov 16, 2025
8b66c82
2.4.65.13
stelian42 Nov 16, 2025
4b1be42
Use up to 10 iterations for Hs prediction algo
stelian42 Nov 18, 2025
d48de03
2.4.65.14
stelian42 Nov 18, 2025
b201481
Fix a couple of incorrect star names in tests
stelian42 Nov 19, 2025
9b4753b
Put "N/A" in textfields if Hs prediction fails
stelian42 Nov 19, 2025
6c5f97b
Remove the display of estimated Hs from GUI.
stelian42 Nov 19, 2025
01a9820
First shot of "Backyard lunars"
stelian42 Nov 19, 2025
2cae33d
2.4.65.15
stelian42 Nov 19, 2025
f7f5767
Change "Dismiss" Find dialog label to "Close"
stelian42 Nov 20, 2025
76278f5
When Lunar time certainity is 0, use 10800 instead
stelian42 Nov 20, 2025
b30d6dd
Separate FindBody and LunarResults dialogs
stelian42 Nov 20, 2025
bfd1300
2.4.65.16
stelian42 Nov 20, 2025
cc72ada
Fix Lunar 'FindBody' dialog intercept calculations
stelian42 Nov 21, 2025
43915d5
2.4.65.17
stelian42 Nov 21, 2025
46a2e0a
Build android using cimg/android:2023.12-ndk
stelian42 Nov 23, 2025
34387fe
2.4.65.18
stelian42 Nov 23, 2025
b1e4509
Implement pan dialogs on Android
stelian42 Nov 23, 2025
7b5b3df
small changes to CMakeLists.txt
rgleason Nov 30, 2025
dcab7ed
TP1.0.352.0
rgleason Dec 9, 2025
fb11861
Updating current opencpn-libs to latest version
rgleason Dec 9, 2025
6e0b62b
2.4.65.20 + TP1.0.352.0
rgleason Dec 9, 2025
63433ea
Fix test build error
stelian42 Dec 12, 2025
6829898
Bundle Lunar use case PDF in the documentation
stelian42 Dec 12, 2025
cb2a60d
2.4.65.21
stelian42 Dec 12, 2025
95ff3ac
Improve documentation
stelian42 Dec 14, 2025
ff15970
2.4.65.22
stelian42 Dec 14, 2025
8ae7583
Rename Information button to Documentation
stelian42 Dec 15, 2025
20dcc52
Update embedded documentation
stelian42 Dec 15, 2025
75af127
2.4.65.23
stelian42 Dec 15, 2025
e628eff
Update documentation
stelian42 Dec 15, 2025
b1f8b91
2.4.65.24
stelian42 Dec 15, 2025
332d6e0
Small documentation fix
stelian42 Dec 16, 2025
ffeb2a4
Update Lunar Distance Use Case
stelian42 Dec 17, 2025
fef5b6e
Initial plan
Copilot Dec 17, 2025
1c94e56
Merge pull request #241 from rgleason/copilot/sub-pr-240
rgleason Dec 18, 2025
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
69 changes: 65 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ workflows:
<<: *std-filters
- build-msvc-wx32-2022:
<<: *std-filters
- build-debian-armhf-13-trixie:
<<: *std-filters
- build-debian-arm64-13-trixie:
<<: *std-filters
- build-debian-x86_64-13-trixie:
<<: *std-filters
- build-debian-arm64-12-bookworm:
<<: *std-filters
- build-debian-armhf-12-bookworm:
Expand All @@ -46,7 +52,7 @@ workflows:
- build-debian-arm64-11-bullseye:
<<: *std-filters
- build-debian-x86_64-11-bullseye:
<<: *std-filters
<<: *std-filters
## KEEP needed for Jammy with wx32
- build-ubuntu-x86_64-2204-jammy:
<<: *std-filters
Expand Down Expand Up @@ -130,7 +136,7 @@ jobs:
## ---------------------
build-android-arm64:
docker:
- image: cimg/android:2025.04-ndk
- image: cimg/android:2023.12-ndk
resource_class: large
environment:
- OCPN_TARGET: android-arm64
Expand All @@ -144,7 +150,7 @@ jobs:
install_python: true
build-android-armhf:
docker:
- image: cimg/android:2025.04-ndk
- image: cimg/android:2022.12-ndk
resource_class: large
environment:
- OCPN_TARGET: android-armhf
Expand All @@ -158,7 +164,7 @@ jobs:
install_python: true
build-macos-universal:
macos:
xcode: "15.2.0"
xcode: 15.4.0
environment:
OCPN_TARGET: macos
CMAKE_BUILD_PARALLEL_LEVEL: 2
Expand Down Expand Up @@ -274,6 +280,61 @@ jobs:
command: bash ci/circleci-build-flatpak.sh
no_output_timeout: 30m
- deploy-code
build-debian-arm64-13-trixie:
machine:
image: ubuntu-2204:current
resource_class: arm.medium
environment:
- OCPN_TARGET=trixie-arm64
- DOCKER_IMAGE=arm64v8/debian:trixie
- BUILD_FLAGS=-j3
- BUILD_ENV=debian
- WX_VER: 32
- BUILD_GTK3: true
- DEPLOY_USE_ORB: true
steps:
- checkout
- run: chmod a+x ./ci/*.sh
- run:
command: ci/circleci-build-ubuntu-docker.sh
no_output_timeout: 30m
- deploy-code
build-debian-armhf-13-trixie:
machine:
image: ubuntu-2204:current
resource_class: arm.medium
environment:
- OCPN_TARGET=trixie-armhf
- DOCKER_IMAGE=arm32v7/debian:trixie
- BUILD_FLAGS=-j3
- BUILD_ENV=debian
- WX_VER: 32
- BUILD_GTK3: true
- DEPLOY_USE_ORB: true
steps:
- checkout
- run: chmod a+x ./ci/*.sh
- run:
command: ci/circleci-build-ubuntu-docker.sh
no_output_timeout: 30m
- deploy-code
build-debian-x86_64-13-trixie:
machine:
image: ubuntu-2404:current
environment:
- OCPN_TARGET: trixie
- BUILD_GTK3: true
- WX_VER: 32
- DEPLOY_USE_ORB: true
- BUILD_ENV=debian
- DOCKER_IMAGE=debian:trixie
steps:
- checkout
- run: chmod a+x ci/*.sh
- run:
command: ci/circleci-build-ubuntu-docker.sh
no_output_timeout: 30m
- deploy-code
build-debian-arm64-12-bookworm:
machine:
image: ubuntu-2204:current
Expand Down
77 changes: 42 additions & 35 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
##---------------------------------------------------------------------------
## Author: Sean d'Epagnier
##***************************************************************************
## * Copyright (C) 2010 by Sean d'Epagnier *
## * License: GPLv3+
## * This program is free software; you can redistribute it and/or modify *
## * it under the terms of the GNU General Public License as published by *
## * the Free Software Foundation; either version 2 of the License, or *
## * (at your option) any later version. *
## * *
## * This program is distributed in the hope that it will be useful, *
## * but WITHOUT ANY WARRANTY; without even the implied warranty of *
## * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
## * GNU General Public License for more details. *
## * *
## * You should have received a copy of the GNU General Public License *
## * along with this program; if not, write to the *
## * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, *
## * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx *
#-----------------------------------------------------------------------------
# Frontend2 Author: Jon Gough Testplugin(TP) v1.0.341.0 30/04/2025 DD/MM/YYYY
# ---------------------------------------------------------------------------
# Author: Sean d'Epagnier
# License: GPL v3+ License: wxWidgets
# ---------------------------------------------------------------------------
# - Copyright (C) 2010 by Sean d'Epagnier *
# - License: GPLv3+
# - This program is free software; you can redistribute it and/or modify *
# - it under the terms of the GNU General Public License as published by *
# - the Free Software Foundation; either version 2 of the License, or *
# - (at your option) any later version. *
# - *
# - This program is distributed in the hope that it will be useful, *
# - but WITHOUT ANY WARRANTY; without even the implied warranty of *
# - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
# - GNU General Public License for more details. *
# - *
# - You should have received a copy of the GNU General Public License *
# - along with this program; if not, write to the *
# - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, *
# - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx *
# -----------------------------------------------------------------------------
# Frontend2 Author: Jon Gough Testplugin(TP) v1.0.352.0 09/12/2025 DD/MM/YYYY
# buildCI:yes useODAPI:no validateJSON:no
# ---------------------------------------------------------------------------
## -- When changing this file do NOT change the order of the sections. -- ##
Expand All @@ -30,7 +31,7 @@
set(CMLOC "CMakeLists: ")

# define minimum cmake version
cmake_minimum_required(VERSION 3.10)
cmake_minimum_required(VERSION 3.15)
if(COMMAND cmake_policy)
if (POLICY CMP0043)
cmake_policy(SET CMP0043 NEW)
Expand Down Expand Up @@ -61,7 +62,7 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)

# define plugin name, owner and versions
set(VERBOSE_NAME Celestial_Navigation)
set(COMMON_NAME "Celestial Navigation")
set(COMMON_NAME "Celestial Navigation")
set(TITLE_NAME "CELESTIALNAVIGATION")
set(PACKAGE_CONTACT "Sean D'Epagnier ")
set(PACKAGE "celestial_navigation")
Expand All @@ -75,19 +76,18 @@ set(LONG_DESCRIPTION
set(VERSION_MAJOR "2")
set(VERSION_MINOR "4")
set(VERSION_PATCH "65")
set(VERSION_TWEAK "0")
set(VERSION_DATE "05/06/2025" )# DD/MM/YYYY format
set(OCPN_MIN_VERSION "ov58")
set(VERSION_TWEAK "24")
set(VERSION_DATE "15/12/2025" )# DD/MM/YYYY format
set(OCPN_MIN_VERSION "improve")

set(OCPN_API_VERSION_MAJOR "1")
set(OCPN_API_VERSION_MINOR "18")
set(TP_COMMENT " * Release using CI")

set(PARENT "opencpn")

#Use to set up a local webserver with git installed.
#Default is github.com. Now set in pluginconfigure.cmake
#set(GIT_REPOSITORY_SERVER "github.com")
# Use to set up a local webserver with git installed. Default is github.com.
# Now set in PluginSetup.cmake set(GIT_REPOSITORY_SERVER "github.com")

## Specifies Cloudsmith upload repository suffix for each catalog
set(PROD "prod") #Standard Repos
Expand All @@ -96,8 +96,8 @@ set(ALPHA "alpha") #Standard Repos

# Set if Cloudsmith Base Repository name does not match your Git Repository name.
#set (CLOUDSMITH_BASE_REPOSITORY "${GIT_REPOSITORY_NAME}")
#set (CLOUDSMITH_BASE_REPOSITORY "opencpn-plugins") #Ricks's customization
set (CLOUDSMITH_BASE_REPOSITORY "celestial-navigation") # without the pi
#set (CLOUDSMITH_BASE_REPOSITORY "opencpn-plugins") # Ricks's customization
set (CLOUDSMITH_BASE_REPOSITORY "celestial-navigation") # without the _pi

# Set the following to use OpenCPN cloudsmith repositories instead of own repositories
set(CLOUDSMITH_USER "opencpn")
Expand Down Expand Up @@ -192,6 +192,7 @@ SET(SRCS
src/Sight.cpp
src/icons.cpp
src/FindBodyDialog.cpp
src/LunarResultsDialog.cpp
src/FixDialog.cpp
src/ClockCorrectionDialog.cpp
src/geodesic.c
Expand Down Expand Up @@ -224,6 +225,8 @@ add_definitions(-DPLUGIN_USE_SVG)

## ----- If using JSON validation in plugin section above is needed --------##

if (QT_ANDROID)
endif (QT_ANDROID)

##=============================================================
## Change as required to collect all the set( headers and SRCS
Expand All @@ -241,8 +244,8 @@ include_directories(BEFORE ${PROJECT_SOURCE_DIR}/src/astrolabe)
include_directories(BEFORE ${PROJECT_SOURCE_DIR}/src/geomag)


## Change target_sources to match your project needs.
##==============================================================
# Change target_sources to match your project needs.
# ==============================================================

target_sources(${PACKAGE_NAME} PUBLIC ${SRC} )

Expand All @@ -257,7 +260,7 @@ if (NOT OCPN_FLATPAK_CONFIG)
target_link_libraries(${PACKAGE_NAME} windows::headers)
endif (WIN32)

add_subdirectory(opencpn-libs/api-18)
add_subdirectory(opencpn-libs/api-${OCPN_API_VERSION_MINOR})
target_link_libraries(${PACKAGE_NAME} ocpn::api)

add_subdirectory(opencpn-libs/tinyxml)
Expand All @@ -269,7 +272,11 @@ if (NOT OCPN_FLATPAK_CONFIG)
add_subdirectory(opencpn-libs/wxJSON)
target_link_libraries(${PACKAGE_NAME} ocpn::wxjson)

add_subdirectory(opencpn-libs/plugin_dc)
# Note this is a local copy of plugin_dc from opencpn-libs,
# Note remove this in the future when fixes are upstreamed
add_subdirectory(src/plugin_dc)
# add_subdirectory(opencpn-libs/plugin_dc)

target_link_libraries(${PACKAGE_NAME} ocpn::plugin-dc)

add_subdirectory(opencpn-libs/bzip2)
Expand Down
Loading