[Gpredict-svn] SF.net SVN: gpredict:[155] trunk/src
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <cs...@us...> - 2008-10-25 17:55:09
|
Revision: 155
http://gpredict.svn.sourceforge.net/gpredict/?rev=155&view=rev
Author: csete
Date: 2008-10-25 17:55:05 +0000 (Sat, 25 Oct 2008)
Log Message:
-----------
Added start time as parameter.
Modified Paths:
--------------
trunk/src/gtk-sky-glance.c
trunk/src/gtk-sky-glance.h
Modified: trunk/src/gtk-sky-glance.c
===================================================================
--- trunk/src/gtk-sky-glance.c 2008-10-24 22:24:30 UTC (rev 154)
+++ trunk/src/gtk-sky-glance.c 2008-10-25 17:55:05 UTC (rev 155)
@@ -224,7 +224,7 @@
* \param qth Pointer to the ground station data.
*/
GtkWidget*
-gtk_sky_glance_new (GHashTable *sats, qth_t *qth)
+gtk_sky_glance_new (GHashTable *sats, qth_t *qth, gdouble ts)
{
GtkWidget *skg;
GooCanvasItemModel *root;
@@ -239,7 +239,15 @@
/* get settings */
GTK_SKY_GLANCE (skg)->numsat = g_hash_table_size (sats);
- GTK_SKY_GLANCE (skg)->ts = get_current_daynum ();
+
+ /* if ts = 0 use current time */
+ if (ts > 0.0) {
+ GTK_SKY_GLANCE (skg)->ts = ts;
+ }
+ else {
+ GTK_SKY_GLANCE (skg)->ts = get_current_daynum ();
+ }
+
GTK_SKY_GLANCE (skg)->te = GTK_SKY_GLANCE (skg)->ts +
sat_cfg_get_int (SAT_CFG_INT_SKYATGL_TIME)*(1.0/24.0);
Modified: trunk/src/gtk-sky-glance.h
===================================================================
--- trunk/src/gtk-sky-glance.h 2008-10-24 22:24:30 UTC (rev 154)
+++ trunk/src/gtk-sky-glance.h 2008-10-25 17:55:05 UTC (rev 155)
@@ -115,7 +115,7 @@
GtkType gtk_sky_glance_get_type (void);
-GtkWidget* gtk_sky_glance_new (GHashTable *sats, qth_t *qth);
+GtkWidget* gtk_sky_glance_new (GHashTable *sats, qth_t *qth, gdouble ts);
/*
void gtk_sky_glance_reconf (GtkWidget *skg);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|