Commit graph

1123 commits

Author SHA1 Message Date
Satoshi Yasuda, 7m3tjz
533cbcef93 for libgps 3.22 2023-12-24 20:45:20 +01:00
Daniel Estévez
d86ffc1d54 Fix orbit number calculations.
This solves two problems with the orbit number calculations:

- When age = 0, the orbit number must match the TLE revnum. However,
  the expression inside the floor(..) can be give a non-zero value.
  We need to subtract the result of the floor(..) with age = 0 to
  account for this.

- In gtk-sat-data.c, the sign of the term involving the argument of
  perigee and mean anomaly at epoch is wrong. The term should have
  a positive sign, since it counts as an increasing fraction of a
  revolution measured from the ascending node.
2023-12-24 20:37:03 +01:00
Alexandru Csete
7723df62c4 Update authors 2023-12-24 20:35:24 +01:00
Mike Black W9MDB
2e9632d1de Change vfoCurr to currVFO 2023-12-24 20:20:43 +01:00
Mike Black W9MDB
acf6061ac9 Add get_vfos and also reset conf2 so rig gets set up again on reopening 2023-12-24 20:20:43 +01:00
Mike Black W9MDB
2da2d2090d Add vfo_opt to gpredict -- automatically turns on and uses vfo_opt if supported by rigctld 2023-12-24 20:20:43 +01:00
Mike Black W9MDB
00e94c7da3 Replace some strncpy's with memcpy to prevent gcc fortify warnings 2023-12-24 20:20:43 +01:00
Mike Black W9MDB
09b5ff6e87 Change abs to labs to eliminate compiler warning 2023-12-24 20:20:43 +01:00
Mike Black W9MDB
9dff4b9ab9 Change abs to labs 2023-12-24 20:20:43 +01:00
Sean Svihla
0f3beb6ade Added CURLOPT_FOLLOWLOCATION in case of future redirects 2022-08-07 19:22:59 +02:00
Sean Svihla
2103b2c4a6 Changed top-level domains of CelesTrak TLE URLs
Change CelesTrak URL extensions from .com to .org.
Change CelesTrack and AMSAT protocol from http to https.
2022-08-07 19:22:12 +02:00
Daniele Forsi
9bc01954c7 Fix spelling
Fixed with:
codespell --skip data,po --ignore-words-list=te --summary --write-changes
2022-07-17 00:03:19 +02:00
Jason Uher
a0a5636847 Force autotrack to respect minimum elevation setting 2021-05-09 00:27:05 +02:00
Tobias Nießen
56f31d5549 Fix label text (receding) for SINGLE_SAT_FIELD_DIR 2021-05-08 16:55:04 +02:00
Alexandru Csete
ee84d89ad1 Update authors 2020-12-19 14:51:04 +01:00
Joe
e8aefd2c2e #3 finish solar terminator: work with maps at longitudes other than 0 2020-12-19 14:47:36 +01:00
Joe
7ab700e50a #3 finish solar terminator: Option to disable it 2020-12-19 14:47:36 +01:00
Tim Gates
6ea6e7bcb4 docs: fix simple typo, predicition -> prediction
There is a small typo in src/gtk-polar-plot.c.

Should read `prediction` rather than `predicition`.
2020-12-19 11:29:50 +01:00
Tim Brooks
84660960bb Plug a small memory leak in ground tracks 2020-12-19 11:26:25 +01:00
Tim Brooks
b00471cb4c Remove redundant function 2020-12-19 11:26:25 +01:00
Tim Brooks
e4daf6f313 Call view destructors before freeing GtkSatModule
Some destructors look at data in the Sat Module, which becomes invalid
first.
2020-12-19 11:26:25 +01:00
Tim Brooks
fc63e99104 Free up memory used by GtkSatMap
The map and satellite object data were leaking on destruction of
GtkSatMap. This happens every time the enclosing module is configured.
2020-12-19 11:26:25 +01:00
Tim Brooks
c3ab2f7d04 Fix bad timerid null value
timerid is unsigned, only 0 is an invalid GSource ID.
2020-12-19 11:26:25 +01:00
Alexandru Csete
b1576f3e6a Update about info 2020-12-12 10:48:58 +01:00
Yasushi SHOJI
e027e7b475 src/main: Fix GdkMonitor acquisition failure
On a Wayland system, we can't get the primary monitor due to protocol
shortage[1].  This caused gpredict to print a critical message like:

  Gdk-CRITICAL **: 02:03:59.960: gdk_monitor_get_workarea: assertion
  'GDK_IS_MONITOR (monitor)' failed

Because it failed get the primary monitor, `w` and `h` were just plain
garbage.

Instead of trying to get the primary monitor, this commit gets the
monitor the window is on.  This commit has been tested both on a
Wayland and a X11 session.

https://gitlab.gnome.org/GNOME/gtk/-/issues/1028

Signed-off-by: Yasushi SHOJI <yasushi.shoji@gmail.com>
2020-12-12 10:46:18 +01:00
Yasushi SHOJI
83a5180f38 Replace deprecated g_get_current_time() and GTimeVal
Replace deprecated g_get_current_time() and GTimeVal with newer
g_get_real_time(), or GDateTime.  All functions used in this commit
have been available since 2.26.

 - since 2.28
   - g_get_real_time()
 - since 2.26
   - g_date_time_new_local()
   - g_date_time_format()

This closes #237

Signed-off-by: Yasushi SHOJI <yasushi.shoji@gmail.com>
2020-12-12 10:46:18 +01:00
Yasushi SHOJI
9e651771cc src/gtk-*.c: Fix warnings "cast between incompatible function types"
GClassInitFunc() and GInstanceInitFunc() of GTypeInfo takes gpointer
class_data and gpointer g_class as the second argument, respectively.
We don't use them but the current GCC generates warnings like the
followings:

    gtk-polar-plot.c: In function ‘gtk_polar_plot_get_type’:
    gtk-polar-plot.c:109:13: warning: cast between incompatible
         function types from ‘void (*)(GtkPolarPlotClass *)’ {aka
         ‘void (*)(struct _GtkPolarPlotClass *)’} to
	 ‘void (*)(void *, void *)’ [-Wcast-function-type]
      109 |             (GClassInitFunc) gtk_polar_plot_class_init,
          |             ^

Add the second arguments to all functions and mark them unused by
casting with void.

Signed-off-by: Yasushi SHOJI <yasushi.shoji@gmail.com>
2020-12-12 10:46:18 +01:00
Yasushi SHOJI
0f901215d2 gtk-freq-knob: Fix a wrong return value type for update()
The first argument to g_idle_add() is a GSourceFunc, which is
declared

    gboolean (*GSourceFunc) (gpointer user_data);

gtk_freq_knob_update() was somehow changed to return a pointer in the
commit 677ebd8826, but it should be gboolean.

Signed-off-by: Yasushi SHOJI <yasushi.shoji@gmail.com>
2020-12-12 10:46:18 +01:00
Alexandru Csete
5d2d1382db Avoid modulus with 0 denominator 2020-11-22 00:22:27 +01:00
Tim Brooks
e9db33f7f7 Fix saving sort order 2020-07-30 12:24:52 +02:00
Tim Brooks
adc7393c23 Set polar view background colour
Fixes #188
2020-07-30 12:20:18 +02:00
LeaseOnLife
64c3565f37 add libgps-3.17 support
not my code, but I tested it on a PI4
This is from Satoshi Yasuda on this thread:
https://community.libre.space/t/gpredict-and-gpsd/2787/3

a PI binary and his modified file can also be had here:
http://www.ariss.jp/software/gpredict/
2020-05-16 20:54:31 +02:00
Alexandru Csete
8e1b566411 Fix wrong naming of half-duplex 2020-04-04 16:57:35 +02:00
Alexandru Csete
de673c3a61 Ensure module timer ID is set to 0 when destroying module
Fixes "Source ID 12 was not found when attempting to remove it" warnings
when modules destroy function is called more than once.
2020-04-04 15:18:47 +02:00
Alexandru Csete
a68824372c Fix uninitialized variable warning in JSON parser 2020-04-04 15:08:25 +02:00
Alexandru Csete
e8999973d1 Replace deprecated gdk_screen_width() and height()
Issue #146.
2020-04-04 15:02:37 +02:00
Alexandru Csete
dea153c224 Avoid using deprecated gtk_menu_popup in Gtk+ 3.22+
Issue #144.
2020-04-04 14:53:25 +02:00
Alexandru Csete
23e945f966 Fix build for Gtk+ < 3.22 2020-04-04 14:37:57 +02:00
Alexandru Csete
aac0beaeab Avoid using deprectated gtk_menu_popup in Gtk 3.22+
Thanks to @f1ixx for the tip. Fixes #144.
2020-04-04 13:33:48 +02:00
Alexandru Csete
994af74651 Replace deprecated gdk_screen_width() and height()
Thanks @f1ixx for the tip. Fixes #146.
2020-04-04 13:17:33 +02:00
Alexandru Csete
0b0978af13 Refactor sat module popup to avoid forward declarations 2020-04-04 13:08:25 +02:00
Alexandru Csete
85ba50af8c Improve module deletion function
- Ensure confirmation dialog is centered on parent window.
- Don'tclose module if user cancels the deletion.
- Show reason for error when deletion fails.
- Use correct log level when deletion succeeds.
2020-04-04 12:49:11 +02:00
Alexandru Csete
c565bb3d48 Add typdef to qth_data_type
Closes #195.
2020-02-23 23:34:51 +01:00
Ignas J
822cfa2f72 initial snap packaging
add snapcraft.yaml
add ability to change PACKAGE_DATA_DIR via env var
2019-04-06 10:43:51 +02:00
Alexandru Csete
f88b43c87f Print more info when satellite is missing 2019-01-26 12:05:27 +01:00
Alexandru Csete
1da369ca4f Correct handling of return value when saving config files 2019-01-26 12:00:23 +01:00
Alexandru Csete
668e052430 Use new icon for module menu and remove delete button 2019-01-22 22:26:58 +01:00
Alexandru Csete
9835d4628e Use g_key_file_save_to_file() to save configuration files
Closes #34.
2019-01-19 16:27:16 +01:00
Alexandru Csete
b8ed584956 Update news and authors 2019-01-19 16:13:05 +01:00
Jason Uher
660e0d18c5 list view: ensure next events are in chronological order 2019-01-19 16:09:10 +01:00