Commit graph

1638 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
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
Yasushi SHOJI
ceddd7989a gitignore: Add GNU Global files
Add files generated by GNU Global.

Signed-off-by: Yasushi SHOJI <yasushi.shoji@gmail.com>
2020-12-12 10:46:18 +01:00
Yasushi SHOJI
2233b790f9 gitignore: Add Emacs backup file
Add Emacs style backup files, which is a file name with trailing `~`.

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
Andreas Puschendorf
56f955edbb add description of new hamlib parameter 2020-11-22 00:13:18 +01:00
Alexandru Csete
6add54ddd2 Update news 2020-07-30 12:39:06 +02:00
Alexandru Csete
43cdf8d94b Update contributor list 2020-07-30 12:39:06 +02:00
Helmut Grohne
42326d9d9a Use $PKG_CONFIG instead of pkg-config to allow cross-building
Context: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=888043
2020-07-30 12:30:59 +02:00
Tim Brooks
e9db33f7f7 Fix saving sort order 2020-07-30 12:24:52 +02:00