Moved changing aos/los to whole seconds out of FindCrossingPoint

feature/19
Daniel Warner 2011-05-28 14:03:38 +00:00
parent 630409257c
commit 2ef6c635cc
1 changed files with 8 additions and 8 deletions

View File

@ -52,14 +52,6 @@ Julian FindCrossingPoint(const CoordGeodetic& user_geo, SGP4& sgp4, const Julian
loop_count++;
};
/*
* convert time to whole seconds
*/
if(finding_aos)
middle_time = floor(middle_time.GetDate() * kSECONDS_PER_DAY) / kSECONDS_PER_DAY;
else
middle_time = ceil(middle_time.GetDate() * kSECONDS_PER_DAY) / kSECONDS_PER_DAY;
return middle_time;
}
@ -147,6 +139,14 @@ int main() {
*/
AOSLOS(geo, sgp4, start_date, end_date);
/*
* convert time to whole seconds
*/
//if(finding_aos)
// middle_time = floor(middle_time.GetDate() * kSECONDS_PER_DAY) / kSECONDS_PER_DAY;
//else
// middle_time = ceil(middle_time.GetDate() * kSECONDS_PER_DAY) / kSECONDS_PER_DAY;
return 0;
#if 0
Eci eci;