[Gpredict-svn] SF.net SVN: gpredict:[897] trunk
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <aa...@us...> - 2011-09-18 14:09:32
|
Revision: 897
http://gpredict.svn.sourceforge.net/gpredict/?rev=897&view=rev
Author: aa1vs
Date: 2011-09-18 14:09:26 +0000 (Sun, 18 Sep 2011)
Log Message:
-----------
Remove error message if latitude, longitude, or altitude is zero.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/qth-data.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-09-07 23:31:58 UTC (rev 896)
+++ trunk/ChangeLog 2011-09-18 14:09:26 UTC (rev 897)
@@ -1,3 +1,10 @@
+2011-09-18 Charles Suprin <hamaa1vs at gmail.com>
+
+ * ChangeLog
+ * src/qth-data.c
+ Remove error message if latitude, longitude, or altitude is zero.
+
+
2011-09-07 Charles Suprin <hamaa1vs at gmail.com>
* ChangeLog
Modified: trunk/src/qth-data.c
===================================================================
--- trunk/src/qth-data.c 2011-09-07 23:31:58 UTC (rev 896)
+++ trunk/src/qth-data.c 2011-09-18 14:09:26 UTC (rev 897)
@@ -766,20 +766,20 @@
*/
void qth_validate(qth_t*qth){
/* check that the values are not set to nonsense such as nan or inf. if so error it and set to zero. */
- if (!isnormal(qth->lat)){
+ if (!isnormal(qth->lat) && (qth->lat != 0)){
sat_log_log (SAT_LOG_LEVEL_ERROR,
_("%s: QTH data had bogus lat %f"),
__FUNCTION__,qth->lat);
qth->lat=0.0;
}
- if (!isnormal(qth->lon)){
+ if (!isnormal(qth->lon) && (qth->lon != 0)){
sat_log_log (SAT_LOG_LEVEL_ERROR,
_("%s: QTH data had bogus lon %f"),
__FUNCTION__,qth->lon);
qth->lon=0.0;
}
- if (!isnormal(qth->alt)){
+ if (!isnormal(qth->alt) && (qth->alt != 0)){
sat_log_log (SAT_LOG_LEVEL_ERROR,
_("%s: QTH data had bogus alt %f"),
__FUNCTION__,qth->alt);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|