Commit graph

1647 commits

Author SHA1 Message Date
Alexandru Csete
a00060ba26 Merge branch 'Hamlib_VFO' of https://github.com/KaComet/gpredict into hamlibvfo 2023-12-24 23:15:17 +01:00
Alexandru Csete
1b6eb50a37 Add command line option to start gpredict in fullscreen mode 2023-12-24 22:34:08 +01:00
KaComet
b74d9bdf9f Because gtk_rot_ctrl_destroy can be called more than once, ctrl->timerid must be set to zero after deletion to avoid a double free condition. 2023-12-24 21:17:59 +01:00
KaComet
dfb7b02276 Closing the rotor control window while a rotor is engaged no longer crashes Gpredict. 2023-12-24 21:17:59 +01:00
Mikhail Bychek
477f33854c Use gtk_spin_button_update() in gtk-sat-module-tmg.c:calculate_time() to prevent entered time from being reverted in some cases. 2023-12-24 21:04:31 +01:00
Alexandru Csete
6345586d04 Update authors 2023-12-24 21:00:14 +01:00
Nicholas DeCicco
f4ddb67e75 Add internationalization to gtk-freq-knob decimal separator
Previously, the thousands place separator for gtk-freq-knob was
hard-coded as the decimal point (".").

Make the following changes:
- Add a new method, get_locale_thousands_sep(), to compat.{c,h}.
- Use this new method in gtk-freq-knob.c to determine the correct
  thousands separator to use at runtime.
2023-12-24 20:57:30 +01:00
Satoshi Yasuda, 7m3tjz
b553acfe04 for libgps 3.22 - 3.25 2023-12-24 20:45:20 +01:00
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
KaComet
31837025f2 Add support for VFO mode in Rigctrl. Gpredict will now try to enable and use VFO mode, usally set via the --vfo command line flag in Rigctrl, when connecting to a radio. If VFO mode could not be enabled, the old style of commanding the radio is used. 2022-11-27 09:35:09 -06: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
AsciiWolf
6d070b9996 Fix typos in Czech translation 2022-08-07 19:11:01 +02:00
Alexandru Csete
e352be4250 Merge branch 'uranuspucksaxophone-goocanvas3-winbuild' 2022-07-17 00:23:17 +02:00
Alexandru Csete
716b70c61f
Merge branch 'master' into goocanvas3-winbuild 2022-07-17 00:20:58 +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
Alan Moffet
1c6eab97a7 Fix Window build 2022-07-17 00:02:57 +02:00
uranuspucksaxophone
6186299bb9
Update config.mk 2022-07-13 17:33:24 +02:00
uranuspucksaxophone
48d41d8968
Update config.mk 2022-07-13 01:20:10 +02:00
uranuspucksaxophone
f63f97ba54
Goocanvas 3.0 windows compilation 2022-07-13 00:56:27 +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
aa5771036f Fix indent 2021-02-20 14:47:16 +01:00
Alexandru Csete
86fb71aad0 Add support for GooCanvas 3
If GooCanvas 2 is not available, check for version 3.
Issue #246.
2021-02-20 14:42:37 +01:00
Alexandru Csete
2b8c8511dc Remove sudo from travis build (deprecated) 2021-02-20 14:31:36 +01:00
Alexandru Csete
52d1e0336f Update satellite data 2021-01-24 11:04:04 +01: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
Alexandru Csete
b33d5c2b2f Update news 2020-12-19 12:16:22 +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
a0993b77f1 Updatre travis builds to Ubuntu 16.04 2020-12-12 19:19:53 +01:00
Alexandru Csete
b1576f3e6a Update about info 2020-12-12 10:48:58 +01:00
Alexandru Csete
3904c35b0e Update authors file 2020-12-12 10:47:34 +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