This commit is contained in:
Timur A. Fatkhullin
2025-08-21 03:47:53 +03:00
parent 99a28d87ec
commit 33002f1711
8 changed files with 469 additions and 19 deletions

View File

@@ -2,6 +2,7 @@
#include "../mcc_ccte_erfa.h"
#include "../mcc_pzone.h"
#include "../mcc_pzone_container.h"
using namespace mcc::ccte::erfa;
@@ -77,5 +78,20 @@ int main()
std::cout << "INTERSEC AZ = " << mcc::MccAngle(icp.X).sexagesimal() << "\n";
std::cout << "INTERSEC ALT = " << mcc::MccAngle(icp.Y).sexagesimal() << "\n";
mcc::MccAltLimitPZ<mcc::MccAltLimitKind::MAX_ALT_LIMIT> altmax(80.0_degs, state.lat, &erfa);
mcc::MccPZoneContainer<std::chrono::duration<double>> pzcont;
pzcont.addPZone(altmin);
pzcont.addPZone(altmax);
// std::vector<std::chrono::duration<double, std::ratio<60>>> vm;
std::vector<std::chrono::minutes> vm;
ret = pzcont.timeToPZone(eqhrz, &vm);
std::cout << "ret = " << ret.message() << "\n";
std::cout << "TIME TO ZONE 1: " << vm[0] << "\n";
std::cout << "TIME TO ZONE 2: " << vm[1] << "\n";
return 0;
}