autodoc_mount.html 175 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632

<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Classes for driving mounts &#8212; Mount Control Software 1.0.0 documentation</title>
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <link rel="stylesheet" href="_static/classic.css" type="text/css" />
    <link rel="stylesheet" type="text/css" href="_static/graphviz.css" />
    
    <script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
    <script src="_static/jquery.js"></script>
    <script src="_static/underscore.js"></script>
    <script src="_static/doctools.js"></script>
    
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="Definition of the rotation system of a mount" href="definition_rotation.html" />
    <link rel="prev" title="Generate this documentation" href="generate_documentation.html" /> 
  </head><body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="definition_rotation.html" title="Definition of the rotation system of a mount"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="generate_documentation.html" title="Generate this documentation"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">Mount Control Software 1.0.0 documentation</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">Classes for driving mounts</a></li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="classes-for-driving-mounts">
<h1>Classes for driving mounts<a class="headerlink" href="#classes-for-driving-mounts" title="Permalink to this headline">¶</a></h1>
<p>This section is the documentation for developpers of classes related to the astronomical mounts.</p>
<p>This page is generated according the docstrings of the python code.
It displays only public methods of classes.</p>
<p>Details of angle definitions are given in the following links:</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="definition_rotation.html">Definition of the rotation system of a mount</a><ul>
<li class="toctree-l2"><a class="reference internal" href="definition_rotation.html#relation-between-celestial-coordinates-and-the-encoders-of-the-mount">Relation between celestial coordinates and the encoders of the mount</a></li>
<li class="toctree-l2"><a class="reference internal" href="definition_rotation.html#definition-of-the-angles-rotb-rotp">Definition of the angles rotb, rotp</a></li>
<li class="toctree-l2"><a class="reference internal" href="definition_rotation.html#relations-between-rotb-rotp-and-celb-celp">Relations between (rotb, rotp) and (celb, celp)</a><ul>
<li class="toctree-l3"><a class="reference internal" href="definition_rotation.html#northern-hemisphere">Northern hemisphere</a></li>
<li class="toctree-l3"><a class="reference internal" href="definition_rotation.html#southern-hemisphere">Southern hemisphere</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="module-0">
<span id="module-mountastro"></span><h2>Module mountastro<a class="headerlink" href="#module-0" title="Permalink to this headline">¶</a></h2>
<div class="section" id="module-mountastro.mountastro">
<span id="mountastro-mountastro"></span><h3>mountastro.mountastro<a class="headerlink" href="#module-mountastro.mountastro" title="Permalink to this headline">¶</a></h3>
<dl class="py class">
<dt id="mountastro.mountastro.Mountastro">
<em class="property">class </em><code class="sig-prename descclassname">mountastro.mountastro.</code><code class="sig-name descname">Mountastro</code><span class="sig-paren">(</span><em class="sig-param"><span class="o">*</span><span class="n">args</span></em>, <em class="sig-param"><span class="o">**</span><span class="n">kwargs</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro" title="Permalink to this definition">¶</a></dt>
<dd><p>Class to define a mount.</p>
<p>The first element of args is a string to define the mount type amongst:</p>
<blockquote>
<div><ul class="simple">
<li><p>HADEC: Eqquatorial mount.</p></li>
<li><p>HADECROT: Eqquatorial mount + field rotator.</p></li>
<li><p>AZELEV: Altazimutal mount.</p></li>
<li><p>AZELEVROT: Altazimutal mount + field rotator.</p></li>
</ul>
</div></blockquote>
<p>Dictionnary of motion parameters are:</p>
<blockquote>
<div><ul class="simple">
<li><p>NAME: A string to identify the mount in memory.</p></li>
<li><p>LABEL: A string to identify the mount for prints.</p></li>
</ul>
</div></blockquote>
<dl class="field-list simple">
<dt class="field-odd">Example</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
</pre></div>
</div>
<p>A mount is constituted of many axes instanciated automatically using the Mountaxis class.</p>
<p>The class Mountastro provides methods to convert astronomical coordinates
into low level orders for controlers (i.e. increments). For example:</p>
<blockquote>
<div><ul class="simple">
<li><p>radec_coord(): To read the current position of the mount axes.</p></li>
<li><p>radec_synchronize(): To synchronize the current position of the mount axes.</p></li>
<li><p>radec_goto(): To slew the mount axes to a target position.</p></li>
</ul>
</div></blockquote>
<p>These methods are implemented only in simulation mode in the Mountastro class.
All these mods call a second one prefixed by _my_ to communicate physically with
the controller. For example, radec_coord() calls _my_radec_coord(). In the class
Mountastro the methos _my_* are only abstracts. The concrete methods will be defined
in another class specific to the langage of the controller. For exemple the
AstroMECCA commands are written in the class Mount_Astromecca which inherites
metohds of the Mountastro class.</p>
<dl class="field-list simple">
<dt class="field-odd">Example</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro_Astromecca</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">set_channel_params</span><span class="p">(</span><span class="s2">&quot;SERIAL&quot;</span><span class="p">,</span> <span class="n">port</span><span class="o">=</span><span class="s2">&quot;COM1&quot;</span><span class="p">,</span> <span class="n">baud_rate</span><span class="o">=</span><span class="mi">115200</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">ra</span><span class="p">,</span> <span class="n">dec</span><span class="p">,</span> <span class="n">pierside</span> <span class="o">=</span> <span class="n">mymount</span><span class="o">.</span><span class="n">radec_coords</span><span class="p">()</span>
</pre></div>
</div>
<dl class="py method">
<dt id="mountastro.mountastro.Mountastro._get_slewing_state">
<code class="sig-name descname">_get_slewing_state</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; bool<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro._get_slewing_state"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro._get_slewing_state" title="Permalink to this definition">¶</a></dt>
<dd><p>True if telescope is currently moving in response to one of the Slew methods or the MoveAxis(TelescopeAxes, Double) method, False at all other times.</p>
<p>Reading the property will raise an error if the value is unavailable. If the telescope is not capable of asynchronous slewing, this property will always be False. The definition of “slewing” excludes motion caused by sidereal tracking, PulseGuide, RightAscensionRate, and DeclinationRate. It reflects only motion caused by one of the Slew commands, flipping caused by changing the SideOfPier property, or MoveAxis(TelescopeAxes, Double).</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro._get_tracking_state">
<code class="sig-name descname">_get_tracking_state</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; bool<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro._get_tracking_state"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro._get_tracking_state" title="Permalink to this definition">¶</a></dt>
<dd><p>The state of the telescope’s sidereal tracking drive.</p>
<p>Tracking Read must be implemented and must not throw a PropertyNotImplementedException.
Tracking Write can throw a PropertyNotImplementedException.
Changing the value of this property will turn the sidereal drive on and off. However, some telescopes may not support changing the value of this property and thus may not support turning tracking on and off. See the CanSetTracking property.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro._langage_mcs_req_decode">
<code class="sig-name descname">_langage_mcs_req_decode</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">command</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro._langage_mcs_req_decode"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro._langage_mcs_req_decode" title="Permalink to this definition">¶</a></dt>
<dd><p>Format of the request messages:
message = “{typemsg: {action: {cmd: val}}}”</p>
<p>typemsg, action, cmd, val = self._langage_mcs_req_decode(command)</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro._my_read_encs">
<code class="sig-name descname">_my_read_encs</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">incsimus</span><span class="p">:</span> <span class="n">list</span></em><span class="sig-paren">)</span> &#x2192; list<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro._my_read_encs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro._my_read_encs" title="Permalink to this definition">¶</a></dt>
<dd><p>Read the real raw increment values of the axes</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>incsimus</strong> (<em>list</em>) – List of simulated increments.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>List of real increments.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>list</p>
</dd>
</dl>
<p>Inputs are simulated increments. Outputs are real increments if a real mount exists.
This is an abstract method. Please overload it according your language protocol to read real increments.
This conversion method is at level 1/4.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro._set_slewing_state">
<code class="sig-name descname">_set_slewing_state</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">state</span><span class="p">:</span> <span class="n">bool</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro._set_slewing_state"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro._set_slewing_state" title="Permalink to this definition">¶</a></dt>
<dd><p>True if telescope is moving in response to one of the Slew methods or the MoveAxis(TelescopeAxes, Double) method, False at all other times.</p>
<p>Internal for the Python code</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro._set_tracking_state">
<code class="sig-name descname">_set_tracking_state</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">state</span><span class="p">:</span> <span class="n">bool</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro._set_tracking_state"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro._set_tracking_state" title="Permalink to this definition">¶</a></dt>
<dd><p>The state of the telescope’s sidereal tracking drive.</p>
<p>See details in the documentation of _get_tracking_state()</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.astro2cel">
<code class="sig-name descname">astro2cel</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">astro_type</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">base</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="n">polar</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="n">base_deg_per_sec</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">''</span></em>, <em class="sig-param"><span class="n">polar_deg_per_sec</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">''</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.astro2cel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.astro2cel" title="Permalink to this definition">¶</a></dt>
<dd><p>Convert any astronomical coordinate system (astro_type) into celestial coordinates and the corresponding velocities.</p>
<dl class="simple">
<dt>astro_type can be “HADEC” or “AZELEV”:</dt><dd><ul class="simple">
<li><p>base = ha or az (according astro_type)</p></li>
<li><p>polar = dec or elev (according astro_type)</p></li>
<li><p>base_deg_per_sec = dha or daz (according astro_type)</p></li>
<li><p>polar_deg_per_sec = ddec or delev (according astro_type)</p></li>
</ul>
</dd>
</dl>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>astro_type</strong> (<em>str</em>) – Specification of the astronomical coordinate system.</p></li>
<li><p><strong>base</strong> (<em>celme.Angle</em>) – Hour angle or azimuth (unit defined in celme.Angle).</p></li>
<li><p><strong>polar</strong> (<em>celme.Angle</em>) – Declination or elevation (unit defined in celme.Angle).</p></li>
<li><p><strong>base_deg_per_sec</strong> (<em>celme.Angle</em>) – Declination or elevation (unit defined in celme.Angle).</p></li>
<li><p><strong>base_deg_per_sec</strong> – Declination or elevation (unit defined in celme.Angle).</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of celestial coordinates (basis, polar, rotation) (degrees) and their derivatives (deg/sec)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple of 6 elements</p>
</dd>
</dl>
<p>This conversion method is at level 3/4.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.azelev2cel">
<code class="sig-name descname">azelev2cel</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">az</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="n">elev</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.azelev2cel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.azelev2cel" title="Permalink to this definition">¶</a></dt>
<dd><p>Convert (azimuth, elevation) coordinates into celestial coordinates.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>ha</strong> (<em>celme.Angle</em>) – Azimuth (unit defined in celme.Angle).</p></li>
<li><p><strong>dec</strong> (<em>celme.Angle</em>) – Elevation (unit defined in celme.Angle).</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of celestial coordinates (basis, polar, rotation) (degrees)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple of 3 elements</p>
</dd>
</dl>
<p>This conversion method is at level 3/4.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.cel2astro">
<code class="sig-name descname">cel2astro</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">celb</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">celp</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">unit_ha</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">''</span></em>, <em class="sig-param"><span class="n">unit_dec</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">''</span></em>, <em class="sig-param"><span class="n">unit_az</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">''</span></em>, <em class="sig-param"><span class="n">unit_elev</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">''</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.cel2astro"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.cel2astro" title="Permalink to this definition">¶</a></dt>
<dd><p>Convert celestial coordinates into (H.A., Dec) (azimuth, elevation, rotation) astronomical coordinates</p>
<p>It is possible to choice the unit of the outputs for each astronomical coordinate.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>celb</strong> (<em>float</em>) – Celestial base coordinate (degrees).</p></li>
<li><p><strong>celp</strong> (<em>float</em>) – Celestial polar coordinate (degrees).</p></li>
<li><p><strong>unit_ha</strong> (<em>str</em>) – Unit of the Hour angle (unit defined in celme.Angle).</p></li>
<li><p><strong>unit_dec</strong> (<em>str</em>) – Unit of the déclination (unit defined in celme.Angle).</p></li>
<li><p><strong>unit_az</strong> (<em>str</em>) – Unit of the azimuth (unit defined in celme.Angle).</p></li>
<li><p><strong>unit_elelv</strong> – Unit of the elevation (unit defined in celme.Angle).</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of celestial coordinates (ha, dec, az, elev, rotation) (degrees)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple of 5 elements</p>
</dd>
</dl>
<p>This conversion method is at level 3/4.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.cel2azelev">
<code class="sig-name descname">cel2azelev</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">celb</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">celp</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">unit_az</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">''</span></em>, <em class="sig-param"><span class="n">unit_elev</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">''</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.cel2azelev"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.cel2azelev" title="Permalink to this definition">¶</a></dt>
<dd><p>Convert celestial coordinates into (azimuth, elevation, rotation) astronomical coordinates</p>
<p>It is possible to choice the unit of the outputs for each astronomical coordinate.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>celb</strong> (<em>float</em>) – Celestial base coordinate (degrees).</p></li>
<li><p><strong>celp</strong> (<em>float</em>) – Celestial polar coordinate (degrees).</p></li>
<li><p><strong>unit_az</strong> (<em>str</em>) – Unit of the azimuth (unit defined in celme.Angle).</p></li>
<li><p><strong>unit_elelv</strong> – Unit of the elevation (unit defined in celme.Angle).</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of celestial coordinates (az, elev, rotation) (degrees)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple of 3 elements</p>
</dd>
</dl>
<p>This conversion method is at level 3/4.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.cel2enc">
<code class="sig-name descname">cel2enc</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">celb</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">celp</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">pierside</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">output_format</span><span class="o">=</span><span class="default_value">0</span></em>, <em class="sig-param"><span class="n">save</span><span class="o">=</span><span class="default_value">0</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.cel2enc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.cel2enc" title="Permalink to this definition">¶</a></dt>
<dd><p>Convert celestial apparent coordinates into encoder values.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>celb</strong> (<em>float</em>) – Celestial coordinate of the base axis (degrees).</p></li>
<li><p><strong>celp</strong> (<em>float</em>) – Celestial coordinate of the polar axis (degrees).</p></li>
<li><p><strong>pierside</strong> (<em>int</em>) – Pier side: Mountaxis().PIERSIDE_AUTO or Mountaxis().PIERSIDE_POS1 or Mountaxis().PIERSIDE_POS2.</p></li>
<li><p><strong>output_format</strong> (<em>int</em>) – OUTPUT_SHORT or OUTPUT_LONG.</p></li>
<li><p><strong>save</strong> (<em>int</em>) – SAVE_NONE or SAVE_AS_SIMU or SAVE_AS_REAL or SAVE_ALL.</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Increment coordinates</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple of 2 or 14 elements</p>
</dd>
</dl>
<p>Input  = celb, celp, pier side (deg units)
Output = Raw encoder values (inc)</p>
<p>This conversion method is at level 2/4.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.cel2hadec">
<code class="sig-name descname">cel2hadec</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">celb</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">celp</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">unit_ha</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">''</span></em>, <em class="sig-param"><span class="n">unit_dec</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">''</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.cel2hadec"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.cel2hadec" title="Permalink to this definition">¶</a></dt>
<dd><p>Convert celestial coordinates into (H.A., Dec) astronomical coordinates</p>
<p>It is possible to choice the unit of the outputs for each astronomical coordinate.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>celb</strong> (<em>float</em>) – Celestial base coordinate (degrees).</p></li>
<li><p><strong>celp</strong> (<em>float</em>) – Celestial polar coordinate (degrees).</p></li>
<li><p><strong>unit_ha</strong> (<em>str</em>) – Unit of the Hour angle (unit defined in celme.Angle).</p></li>
<li><p><strong>unit_dec</strong> (<em>str</em>) – Unit of the déclination (unit defined in celme.Angle).</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of celestial coordinates (ha, dec) (degrees)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple of 2 elements</p>
</dd>
</dl>
<p>This conversion method is at level 3/4.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.disp">
<code class="sig-name descname">disp</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.disp"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.disp" title="Permalink to this definition">¶</a></dt>
<dd><p>Display a summary of the Mount parameters, the current values of encoders and celestial angles.</p>
<p>This method is used to check and debug the mount.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.enc2cel">
<code class="sig-name descname">enc2cel</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">simulation_incs</span><span class="p">:</span> <span class="n">list</span></em>, <em class="sig-param"><span class="n">output_format</span><span class="o">=</span><span class="default_value">0</span></em>, <em class="sig-param"><span class="n">save</span><span class="o">=</span><span class="default_value">0</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.enc2cel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.enc2cel" title="Permalink to this definition">¶</a></dt>
<dd><p>Read encoder values and convert them into celestial apparent coordinates</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>simulation_incs</strong> (<em>list</em>) – List of simulated increments.</p></li>
<li><p><strong>output_format</strong> (<em>int</em>) – OUTPUT_SHORT or OUTPUT_LONG.</p></li>
<li><p><strong>save</strong> (<em>int</em>) – SAVE_NONE or SAVE_AS_SIMU or SAVE_AS_REAL or SAVE_ALL.</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Celestial coordinates (degrees)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple of 3 or 14 elements</p>
</dd>
</dl>
<p>Input  = Raw encoder values (inc)
Output = HA, Dec, pier side (any celme Angle units)</p>
<p>This conversion method is at level 2/4.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.hadec2cel">
<code class="sig-name descname">hadec2cel</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ha</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="n">dec</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.hadec2cel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.hadec2cel" title="Permalink to this definition">¶</a></dt>
<dd><p>Convert (H.A,Dec) coordinates into celestial coordinates.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>ha</strong> (<em>celme.Angle</em>) – Hour angle (unit defined in celme.Angle).</p></li>
<li><p><strong>dec</strong> (<em>celme.Angle</em>) – Declination (unit defined in celme.Angle).</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of celestial coordinates (basis, polar, rotation) (degrees)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple of 3 elements</p>
</dd>
</dl>
<p>This conversion method is at level 3/4.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.hadec_coord">
<code class="sig-name descname">hadec_coord</code><span class="sig-paren">(</span><em class="sig-param"><span class="o">**</span><span class="n">kwargs</span><span class="p">:</span> <span class="n">dict</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.hadec_coord"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.hadec_coord" title="Permalink to this definition">¶</a></dt>
<dd><p>Read the current astronomical coordinates.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>kwargs</strong> (<em>dict</em>) – Parameters for output units.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of (ha, dec, pierside)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple</p>
</dd>
</dl>
<p>Dictionnary of unit parameters are:</p>
<blockquote>
<div><ul class="simple">
<li><p>UNIT_HA: A string (uspzad format).</p></li>
<li><p>UNIT_DEC: A string (uspzad format).</p></li>
</ul>
</div></blockquote>
<dl class="field-list simple">
<dt class="field-odd">Example</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">hadec_coords</span><span class="p">(</span><span class="s2">&quot;H0.2&quot;</span><span class="p">,</span> <span class="s2">&quot;d+090.1&quot;</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.hadec_drift">
<code class="sig-name descname">hadec_drift</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">hadec_speeddrift_ha_deg_per_sec</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">hadec_speeddrift_dec_deg_per_sec</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.hadec_drift"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.hadec_drift" title="Permalink to this definition">¶</a></dt>
<dd><p>Drift the mount</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>hadec_speeddrift_ha_deg_per_sec</strong> (<em>float</em>) – Hour angle drift (deg/sec)</p></li>
<li><p><strong>hadec_speeddrift_dec_deg_per_sec</strong> (<em>float</em>) – Declination drift (deg/sec)</p></li>
</ul>
</dd>
<dt class="field-even">Example</dt>
<dd class="field-even"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">hadec_drift</span><span class="p">(</span><span class="mf">0.0</span><span class="p">,</span><span class="o">-</span><span class="mf">0.05</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.hadec_goto">
<code class="sig-name descname">hadec_goto</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ha</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="n">dec</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="o">**</span><span class="n">kwargs</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.hadec_goto"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.hadec_goto" title="Permalink to this definition">¶</a></dt>
<dd><p>Slew the mount to a target defined by astronomical coordinates.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>ha</strong> (<em>celme.Angle</em>) – Hour angle target (unit defined in celme.Angle).</p></li>
<li><p><strong>dec</strong> (<em>celme.Angle</em>) – Declination target (unit defined in celme.Angle).</p></li>
<li><p><strong>kwargs</strong> (<em>dict</em>) – Parameters for pointing.</p></li>
</ul>
</dd>
</dl>
<p>Dictionnary of pointing parameters are:</p>
<blockquote>
<div><ul>
<li><p>BLOCKING: A boolean to block the programm until the mount is arrived (False by default).</p></li>
<li><p>SIDE: Integer to indicate the back flip action:</p>
<blockquote>
<div><ul class="simple">
<li><p>PIERSIDE_AUTO (=0) back flip is performed if needed</p></li>
<li><p>PIERSIDE_POS1 (=1) pointing in normal position</p></li>
<li><p>PIERSIDE_POS2 (=-1) pointing in back flip position</p></li>
</ul>
</div></blockquote>
</li>
</ul>
</div></blockquote>
<dl class="field-list simple">
<dt class="field-odd">Example</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">hadec_goto</span><span class="p">(</span><span class="s2">&quot;12h28m47s&quot;</span><span class="p">,</span> <span class="s2">&quot;+5d45m28s&quot;</span><span class="p">,</span> <span class="n">side</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">()</span><span class="o">.</span><span class="n">PIERSIDE_AUTO</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.hadec_move">
<code class="sig-name descname">hadec_move</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ha_move_deg_per_sec</span></em>, <em class="sig-param"><span class="n">dec_move_deg_per_sec</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.hadec_move"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.hadec_move" title="Permalink to this definition">¶</a></dt>
<dd><p>Slew or modify the drift of the mount.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>ha_drift_deg_per_sec</strong> (<em>float</em>) – Hour angle velocity (deg/s).</p></li>
<li><p><strong>dec_drift_deg_per_sec</strong> (<em>float</em>) – Declination velocity (deg/s).</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of (error code, result)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple</p>
</dd>
<dt class="field-even">Example</dt>
<dd class="field-even"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">hadec_move</span><span class="p">(</span><span class="mf">0.1</span><span class="p">,</span><span class="o">-</span><span class="mf">0.2</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.hadec_move_stop">
<code class="sig-name descname">hadec_move_stop</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.hadec_move_stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.hadec_move_stop" title="Permalink to this definition">¶</a></dt>
<dd><p>Stop the mount motion.</p>
<dl class="field-list simple">
<dt class="field-odd">Example</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">hadec_move_stop</span><span class="p">()</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.hadec_stop">
<code class="sig-name descname">hadec_stop</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.hadec_stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.hadec_stop" title="Permalink to this definition">¶</a></dt>
<dd><p>Stop any motion of the mount.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>tuple of (error code, result)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>tuple</p>
</dd>
<dt class="field-odd">Example</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">hadec_stop</span><span class="p">()</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.hadec_synchronize">
<code class="sig-name descname">hadec_synchronize</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ha</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="n">dec</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="n">pierside</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">''</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.hadec_synchronize"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.hadec_synchronize" title="Permalink to this definition">¶</a></dt>
<dd><p>Synchronize the encoders of the current position with the given astronomical coordinates.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>ha</strong> (<em>celme.Angle</em>) – Hour angle (unit defined in celme.Angle).</p></li>
<li><p><strong>dec</strong> (<em>celme.Angle</em>) – Declination (unit defined in celme.Angle).</p></li>
<li><p><strong>pierside</strong> (<em>int</em>) – <ul>
<li><p>Mountaxis().PIERSIDE_AUTO</p></li>
<li><p>Mountaxis().PIERSIDE_POS1</p></li>
<li><p>Mountaxis().PIERSIDE_POS2.</p></li>
</ul>
</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of astronomical coordinates (ha, dec, pierside)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple of 3 elements</p>
</dd>
<dt class="field-even">Example</dt>
<dd class="field-even"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">hadec_synchronize</span><span class="p">(</span><span class="s2">&quot;12h28m47s&quot;</span><span class="p">,</span> <span class="s2">&quot;+5d45m28s&quot;</span><span class="p">,</span> <span class="n">Mountaxis</span><span class="p">()</span><span class="o">.</span><span class="n">PIERSIDE_POS1</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.hadec_travel_compute">
<code class="sig-name descname">hadec_travel_compute</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ha_target</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="n">dec_target</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="n">pierside_target</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">0</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.hadec_travel_compute"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.hadec_travel_compute" title="Permalink to this definition">¶</a></dt>
<dd><p>Compute the duration of a slewing from the current position to a target.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>ha_target</strong> (<em>celme.Angle</em>) – Hour angle (unit defined in celme.Angle).</p></li>
<li><p><strong>dec_target</strong> (<em>celme.Angle</em>) – Declination (unit defined in celme.Angle).</p></li>
<li><p><strong>pierside_target</strong> (<em>int</em>) – Mountaxis().PIERSIDE_AUTO or Mountaxis().PIERSIDE_POS1 or Mountaxis().PIERSIDE_POS2.</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of celestial coordinates (elevmin, ts, elevs)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple of 3 elements</p>
</dd>
</dl>
<dl class="simple">
<dt>Returned values are:</dt><dd><ul class="simple">
<li><p>elevmin: Minimum elevation (degrees).</p></li>
<li><p>ts: List of time from the start of slewing (sec).</p></li>
<li><p>elevs: List of computed elevations for each element of ts (degrees).</p></li>
</ul>
</dd>
</dl>
<p>This conversion method is at level 4/4.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.plot_rot">
<code class="sig-name descname">plot_rot</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">lati</span></em>, <em class="sig-param"><span class="n">azim</span></em>, <em class="sig-param"><span class="n">elev</span></em>, <em class="sig-param"><span class="n">rotb</span></em>, <em class="sig-param"><span class="n">rotp</span></em>, <em class="sig-param"><span class="n">outfile</span><span class="o">=</span><span class="default_value">''</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.plot_rot"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.plot_rot" title="Permalink to this definition">¶</a></dt>
<dd><p>Vizualize the rotation angles of the mount according the local coordinates
# — Site latitude
lati (deg) : Site latitude
# — Observer view
elev = 15 # turn around the X axis
azim = 140 # turn around the Z axis (azim=0 means W foreground, azim=90 means N foreground)
# — rob, rotp</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.radec_coord">
<code class="sig-name descname">radec_coord</code><span class="sig-paren">(</span><em class="sig-param"><span class="o">**</span><span class="n">kwargs</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.radec_coord"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.radec_coord" title="Permalink to this definition">¶</a></dt>
<dd><p>Read the current astronomical coordinates.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>kwargs</strong> (<em>dict</em>) – Parameters for output units.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of (ra, dec, pierside)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple</p>
</dd>
</dl>
<p>Dictionnary of unit parameters are:</p>
<blockquote>
<div><ul class="simple">
<li><p>EQUINOX: Equinox of the ra,dec coordinates (J2000 by default).</p></li>
<li><p>UNIT_RA: A string (uspzad format).</p></li>
<li><p>UNIT_DEC: A string (uspzad format).</p></li>
</ul>
</div></blockquote>
<dl class="field-list simple">
<dt class="field-odd">Example</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">radec_coords</span><span class="p">(</span><span class="s2">&quot;H0.2&quot;</span><span class="p">,</span> <span class="s2">&quot;d+090.1&quot;</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.radec_goto">
<code class="sig-name descname">radec_goto</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ra_angle</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="n">dec_angle</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="o">**</span><span class="n">kwargs</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.radec_goto"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.radec_goto" title="Permalink to this definition">¶</a></dt>
<dd><p>Slew the mount to a target defined by astronomical coordinates.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>ha_angle</strong> (<em>celme.Angle</em>) – Right ascension target (unit defined in celme.Angle).</p></li>
<li><p><strong>dec_angle</strong> (<em>celme.Angle</em>) – Declination target (unit defined in celme.Angle).</p></li>
<li><p><strong>kwargs</strong> (<em>dict</em>) – Parameters for pointing.</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of (error code, result)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple</p>
</dd>
</dl>
<p>Dictionnary of pointing parameters are:</p>
<blockquote>
<div><ul>
<li><p>EQUINOX: Equinox of the ra,dec coordinates (J2000 by default).</p></li>
<li><p>BLOCKING: A boolean to block the programm until the mount is arrived (False by default).</p></li>
<li><p>SIDE: Integer to indicate the back flip action:</p>
<blockquote>
<div><ul class="simple">
<li><p>PIERSIDE_AUTO (=0) back flip is performed if needed</p></li>
<li><p>PIERSIDE_POS1 (=1) pointing in normal position</p></li>
<li><p>PIERSIDE_POS2 (=-1) pointing in back flip position</p></li>
</ul>
</div></blockquote>
</li>
</ul>
</div></blockquote>
<dl class="field-list simple">
<dt class="field-odd">Example</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">radec_goto</span><span class="p">(</span><span class="s2">&quot;12h28m47s&quot;</span><span class="p">,</span> <span class="s2">&quot;+5d45m28s&quot;</span><span class="p">,</span> <span class="n">side</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">()</span><span class="o">.</span><span class="n">PIERSIDE_AUTO</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.radec_synchronize">
<code class="sig-name descname">radec_synchronize</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ra_angle</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="n">dec_angle</span><span class="p">:</span> <span class="n"><a class="reference internal" href="autodoc_celme.html#celme.angles.Angle" title="celme.angles.Angle">celme.angles.Angle</a></span></em>, <em class="sig-param"><span class="o">**</span><span class="n">kwargs</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.radec_synchronize"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.radec_synchronize" title="Permalink to this definition">¶</a></dt>
<dd><p>Synchronize the encoders of the current position with the given astronomical coordinates.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>ra_angle</strong> (<em>celme.Angle</em>) – Right ascension (unit defined in celme.Angle).</p></li>
<li><p><strong>dec_angle</strong> (<em>celme.Angle</em>) – Declination (unit defined in celme.Angle).</p></li>
<li><p><strong>pierside</strong> (<em>int</em>) – <ul>
<li><p>Mountaxis().PIERSIDE_AUTO</p></li>
<li><p>Mountaxis().PIERSIDE_POS1</p></li>
<li><p>Mountaxis().PIERSIDE_POS2.</p></li>
</ul>
</p></li>
<li><p><strong>kwargs</strong> (<em>dict</em>) – Pointing parameters</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>tuple of astronomical coordinates (ra, dec, pierside)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple of 3 elements</p>
</dd>
</dl>
<p>Dictionnary of pointing parameters are:</p>
<blockquote>
<div><ul>
<li><p>EQUINOX: Equinox of the ra,dec coordinates (J2000 by default).</p></li>
<li><p>SIDE: Integer to indicate the back flip action:</p>
<blockquote>
<div><ul class="simple">
<li><p>PIERSIDE_AUTO (=0) back flip is performed if needed</p></li>
<li><p>PIERSIDE_POS1 (=1) pointing in normal position</p></li>
<li><p>PIERSIDE_POS2 (=-1) pointing in back flip position</p></li>
</ul>
</div></blockquote>
</li>
</ul>
</div></blockquote>
<dl class="field-list simple">
<dt class="field-odd">Example</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">radec_synchronize</span><span class="p">(</span><span class="s2">&quot;12h28m47s&quot;</span><span class="p">,</span> <span class="s2">&quot;+5d45m28s&quot;</span><span class="p">,</span> <span class="n">Mountaxis</span><span class="p">()</span><span class="o">.</span><span class="n">PIERSIDE_POS1</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.read_encs">
<code class="sig-name descname">read_encs</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">simulation_incs</span><span class="p">:</span> <span class="n">list</span></em><span class="sig-paren">)</span> &#x2192; list<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.read_encs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.read_encs" title="Permalink to this definition">¶</a></dt>
<dd><p>Read the simulated and real raw increment values of the axes</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>incsimus</strong> (<em>list</em>) – List of simulated increments.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>List of real increments.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>list</p>
</dd>
</dl>
<dl class="simple">
<dt>For the simulation:</dt><dd><ul class="simple">
<li><p>if simulation_incs==”” the value is calculated from simu_update_inc</p></li>
<li><p>if simulation_incs==34.5 the value is taken equal to 34.5</p></li>
</ul>
</dd>
<dt>For real:</dt><dd><ul class="simple">
<li><p>if the axis is not real then real=simulated value</p></li>
<li><p>else the encoder is read</p></li>
</ul>
</dd>
</dl>
<p>Output = Raw calues of encoders (inc)</p>
<p>This conversion method is at level 1/4.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.remote_command_processing">
<code class="sig-name descname">remote_command_processing</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">command</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.remote_command_processing"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.remote_command_processing" title="Permalink to this definition">¶</a></dt>
<dd><p>Execute a command when this code is used as server.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>command</strong> (<em>str</em>) – Command to execute</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>error code</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
<dt class="field-even">Example</dt>
<dd class="field-even"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">remote_command_protocol</span><span class="p">(</span><span class="s2">&quot;LX200&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">remote_command_processing</span><span class="p">(</span><span class="s2">&quot;:GD&quot;</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.remote_command_protocol">
<code class="sig-name descname">remote_command_protocol</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">remote_command_protocol</span><span class="o">=</span><span class="default_value">'LX200'</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.remote_command_protocol"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.remote_command_protocol" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the langage protocol when this code is used as server.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>remote_command_protocol</strong> (<em>str</em>) – Command to execute</p>
</dd>
<dt class="field-even">Example</dt>
<dd class="field-even"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span> <span class="o">=</span> <span class="n">Mountastro</span><span class="p">(</span><span class="s2">&quot;HADEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;My telescope&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">mymount</span><span class="o">.</span><span class="n">remote_command_protocol</span><span class="p">(</span><span class="s2">&quot;LX200&quot;</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.slewing_state">
<em class="property">property </em><code class="sig-name descname">slewing_state</code><a class="headerlink" href="#mountastro.mountastro.Mountastro.slewing_state" title="Permalink to this definition">¶</a></dt>
<dd><p>True if telescope is currently moving in response to one of the Slew methods or the MoveAxis(TelescopeAxes, Double) method, False at all other times.</p>
<p>Reading the property will raise an error if the value is unavailable. If the telescope is not capable of asynchronous slewing, this property will always be False. The definition of “slewing” excludes motion caused by sidereal tracking, PulseGuide, RightAscensionRate, and DeclinationRate. It reflects only motion caused by one of the Slew commands, flipping caused by changing the SideOfPier property, or MoveAxis(TelescopeAxes, Double).</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.speedslew">
<code class="sig-name descname">speedslew</code><span class="sig-paren">(</span><em class="sig-param"><span class="o">*</span><span class="n">args</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.speedslew"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.speedslew" title="Permalink to this definition">¶</a></dt>
<dd><p>Update the speed slewing velocities (deg/sec).</p>
<p>The order of velocities must be respected.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>tuple of velocities</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>tuple of 1 to 3 elements</p>
</dd>
</dl>
<p>This conversion method is at level 2/4.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.tracking_state">
<em class="property">property </em><code class="sig-name descname">tracking_state</code><a class="headerlink" href="#mountastro.mountastro.Mountastro.tracking_state" title="Permalink to this definition">¶</a></dt>
<dd><p>The state of the telescope’s sidereal tracking drive.</p>
<p>Tracking Read must be implemented and must not throw a PropertyNotImplementedException.
Tracking Write can throw a PropertyNotImplementedException.
Changing the value of this property will turn the sidereal drive on and off. However, some telescopes may not support changing the value of this property and thus may not support turning tracking on and off. See the CanSetTracking property.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountastro.Mountastro.update_motion_states">
<code class="sig-name descname">update_motion_states</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro.html#Mountastro.update_motion_states"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro.Mountastro.update_motion_states" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the current motions states of the axes</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>slewing_state, tracking_state, list of axes_motion_states</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>tuple</p>
</dd>
</dl>
<p>slewing_state and tracking_state are booleans. These states are computer according the combination of all active axes (real and simulated ones).
axes_motion_states is a list of states for each axis combining real and simulated.</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-mountastro.mountaxis">
<span id="mountastro-mountaxis"></span><h3>mountastro.mountaxis<a class="headerlink" href="#module-mountastro.mountaxis" title="Permalink to this headline">¶</a></h3>
<dl class="py class">
<dt id="mountastro.mountaxis.Mountaxis">
<em class="property">class </em><code class="sig-prename descclassname">mountastro.mountaxis.</code><code class="sig-name descname">Mountaxis</code><span class="sig-paren">(</span><em class="sig-param"><span class="o">*</span><span class="n">args</span></em>, <em class="sig-param"><span class="o">**</span><span class="n">kwargs</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis" title="Permalink to this definition">¶</a></dt>
<dd><p>Class to define an axis of a mount.</p>
<p>The first element of args is a string to define the axis type amongst:</p>
<blockquote>
<div><ul class="simple">
<li><p>HA: Hour angle axis of an eqquatorial mount.</p></li>
<li><p>DEC: Declination axis of an eqquatorial mount.</p></li>
<li><p>AZ: Azimuth axis of an altaz mount.</p></li>
<li><p>ELEV: Elevation axis of an altaz mount.</p></li>
<li><p>ROT: Paralactic roation axis of an altaz mount.</p></li>
<li><p>ROLL: Roll axis of an altalt mount.</p></li>
<li><p>PITCH: Pitch axis of an altalt mount.</p></li>
<li><p>YAW: Yaw axis of an altalt mount.</p></li>
</ul>
</div></blockquote>
<p>Dictionnary of motion parameters are:</p>
<blockquote>
<div><ul class="simple">
<li><p>NAME: A string to identify the axis in memory.</p></li>
<li><p>LABEL: A string to identify the axis for prints.</p></li>
</ul>
</div></blockquote>
<dl class="field-list simple">
<dt class="field-odd">Example</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;HA&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Hour angle&quot;</span><span class="p">,</span> <span class="n">label</span><span class="o">=</span> <span class="s2">&quot;H.A.&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">axisp</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;DEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Declination&quot;</span><span class="p">,</span> <span class="n">label</span><span class="o">=</span> <span class="s2">&quot;Dec.&quot;</span><span class="p">)</span>
</pre></div>
</div>
<p>A mount axis is defined by a frame called ‘rot’ constituted by two perpendicular axes:</p>
<blockquote>
<div><ul class="simple">
<li><p>Axisp: The polar axis, a great circle passing by the poles</p></li>
<li><p>Axisb: The base axis. Its axis is parallel to the pole direction</p></li>
</ul>
</div></blockquote>
<p>The natural unit of ‘rot’ is degree.</p>
<p>The definition of the ‘rot’ frame is compatible with equatorial and altaz or altalt mounts:</p>
<blockquote>
<div><ul class="simple">
<li><p>hadec  : Equatorial, axisp = declination (dec), axisb = hour angle (ha)</p></li>
<li><p>altaz  : Altaz     , axisp = elevation (alt)  , axisb = azimuth (az)</p></li>
<li><p>altalt : Altalt    , axisp = pitch (pit)      , axisb = roll (rol)</p></li>
</ul>
</div></blockquote>
<p>The definition of ‘rot=0’ depends on the mount types:</p>
<blockquote>
<div><ul class="simple">
<li><p>Axisp: ‘rot=0’ at the pole direction upper horizon</p></li>
<li><p>Axisb: ‘rot=0’ depdns on the mount type (meridian, south, etc)</p></li>
</ul>
</div></blockquote>
<p>The encoders provide another frame called ‘enc’ which shares the same rotational axis than ‘rot’.</p>
<p>The natural unit of ‘enc’ is increments.</p>
<p>The celestial coordinate system provide another frame called ‘cel’ which shares the same rotational axis than ‘rot’.</p>
<p>The natural unit of ‘cel’ is degree.</p>
<p>The ‘cel’ frame if fixed to the ‘rot’ frame. The zeroes are fixed by definition (see above).</p>
<p>The ‘enc’ frame is considered as absolute encoders. As it is impossible to place the inc=0 of the encoder exactly on the rot=0, we define a inc0 = inc when rot=0. As a consequence, for a linear response encoder:</p>
<blockquote>
<div><p>rot = (inc-inc0) * deg_per_inc</p>
</div></blockquote>
<p>However, a rotational sense (senseinc) is indroduced to take accound the increasing increments are in the increasing angles of ‘rot’ or not:</p>
<blockquote>
<div><p>rot = (inc-inc0) * deg_per_inc * senseinc</p>
</div></blockquote>
<p>deg_per_inc is always positive.</p>
<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_ang">
<code class="sig-name descname">_get_ang</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_ang"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_ang" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the arrival angle of a calculated movement for a target.</p>
<p>The orientation of the coordinate system are orthonormal. (Right hand rules, tom pouce for visible polar axis !)</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Error if value is not a real.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_angsimu">
<code class="sig-name descname">_get_angsimu</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_angsimu"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_angsimu" title="Permalink to this definition">¶</a></dt>
<dd><p>In simulation mode, get the arrival angle of a calculated movement for a target.</p>
<p>The orientation of the coordinate system are orthonormal. (Right hand rules, tom pouce for visible polar axis !)</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Error if value is not a real.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_axis_type">
<code class="sig-name descname">_get_axis_type</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_axis_type"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_axis_type" title="Permalink to this definition">¶</a></dt>
<dd><dl class="simple">
<dt>Get type and mechanical position of an axis on the mount.</dt><dd><ul class="simple">
<li><p>BASE : Azimut or hour angle axis,</p></li>
<li><p>POLAR : Elevation or declination axix,</p></li>
<li><p>ROT : Derotator system for non equatorial mount (if equiped),</p></li>
<li><p>YAW : Equivalent to secondary azymtuh base (for Alt-Alt mount).</p></li>
</ul>
</dd>
</dl>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>BASE = 0, POLAR = 1, ROT = 2, YAW = 3</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_inc">
<code class="sig-name descname">_get_inc</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_inc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_inc" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the value for actual increments position of an axis, direct interogation of the controller.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments (for example : 37265)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_inc0">
<code class="sig-name descname">_get_inc0</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_inc0"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_inc0" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the value of increments for “rot=0”.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments for “rot=0” (for example : 1800)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_inc_per_deg">
<code class="sig-name descname">_get_inc_per_deg</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_inc_per_deg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_inc_per_deg" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the number of increments for a single degrees on the sky.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments (for example : env 970000)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_inc_per_motor_rev">
<code class="sig-name descname">_get_inc_per_motor_rev</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_inc_per_motor_rev"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_inc_per_motor_rev" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the number of increments for a single turn of the motor.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments for a single turn of the motor (for example : 1000).</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_inc_per_sky_rev">
<code class="sig-name descname">_get_inc_per_sky_rev</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_inc_per_sky_rev"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_inc_per_sky_rev" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the number of increments for a single complete turn on the sky.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_incsimu">
<code class="sig-name descname">_get_incsimu</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_incsimu"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_incsimu" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the value for actual increments position of an axis, direct interogation of the controller. Value are real if axle is real.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments in simulation mode (for example : 37265)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_language_protocol">
<code class="sig-name descname">_get_language_protocol</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_language_protocol"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_language_protocol" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the type of controller language protocol for an axis (for example : SCX 11 type, or another).</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Type of controller language.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>str</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_latitude">
<code class="sig-name descname">_get_latitude</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_latitude"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_latitude" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the latitude of the observational site. Positive for north.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Latitude of site (for example : 47,2 Degrees)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>str</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_motion_state">
<code class="sig-name descname">_get_motion_state</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_motion_state"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_motion_state" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the current motion state</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Moton state code (0=no motion, 1=slewing, 2=drifting, 3=moving).</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
<p>Slewiwng state is an absolute motion followed by a drift.
Moving state is an infinite motion. If a Moving is stopped we retreive the Drift state.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_motion_state_simu">
<code class="sig-name descname">_get_motion_state_simu</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_motion_state_simu"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_motion_state_simu" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the current motion state for simulation</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Moton state code (0=no motion, 1=slewing, 2=drifting, 3=moving).</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
<p>Slewiwng state is an absolute motion followed by a drift.
Moving state is an infinite motion. If a Moving is stopped we retreive the Drift state.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_name">
<code class="sig-name descname">_get_name</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_name" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the nickname of the axis.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Nickname of the axis (for example : Declination, …)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>str</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_ratio_puley_motor">
<code class="sig-name descname">_get_ratio_puley_motor</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_ratio_puley_motor"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_ratio_puley_motor" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the ratio between pulley and motor.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Ratio between pulley and motor (for example : 100).</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_ratio_wheel_puley">
<code class="sig-name descname">_get_ratio_wheel_puley</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_ratio_wheel_puley"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_ratio_wheel_puley" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the ratio between wheel and motor puley, in diameter.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Ratio between wheel and motor puley (for example : 5.25)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_real">
<code class="sig-name descname">_get_real</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; bool<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_real"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_real" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the axis mode, real or simulation.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>True or False</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>bool</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_senseang">
<code class="sig-name descname">_get_senseang</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_senseang"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_senseang" title="Permalink to this definition">¶</a></dt>
<dd><p>If progression of mechanical angles referentiel are positive and progression of rot0 are positive, ‘set_senseang’ are positive. However, ‘set_senseang’ are negative when progression are inverse.</p>
<p>The sense depend of the orientation of celestial coordinates systems and mechanical coordinates systems.</p>
<p>The orientation of the coordinate system are orthonormal. (Right hand rules, tom pouce for visible polar axis !)</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Error if value is not a real.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_senseinc">
<code class="sig-name descname">_get_senseinc</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_senseinc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_senseinc" title="Permalink to this definition">¶</a></dt>
<dd><p>If progression of increments are positive and progression of ‘rot0’ are positive, ‘senseinc’ are positive. However, ‘senseinc’ are negative when progression are inverse.</p>
<p>The sense depend of the physical rolling sense of motor cable system.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Value sense are “-1” or “1”.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_simu_current_velocity">
<code class="sig-name descname">_get_simu_current_velocity</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_simu_current_velocity"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_simu_current_velocity" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the final cruising speed during the motion. Motion are celestial slewing speed or any other, like goto for example.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Terminal velocity speed for a movement in degrees / sec.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_slew_deg_per_sec">
<code class="sig-name descname">_get_slew_deg_per_sec</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_slew_deg_per_sec"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_slew_deg_per_sec" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the setting speed of a goto motion.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Speed for a goto movement in degrees / sec.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._get_slewmax_deg_per_sec">
<code class="sig-name descname">_get_slewmax_deg_per_sec</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._get_slewmax_deg_per_sec"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._get_slewmax_deg_per_sec" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the maximum speed for slew motion.</p>
<p>The value have a maximum, setting by a limit (_slewmax_deg_per_sec).</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Maximum speed for a goto movement in degrees / sec.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._incr_variables">
<code class="sig-name descname">_incr_variables</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._incr_variables"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._incr_variables" title="Permalink to this definition">¶</a></dt>
<dd><dl class="simple">
<dt>Update and calculus of two parameters :</dt><dd><ul class="simple">
<li><p>number of increments for a complete turn of an axis</p></li>
<li><p>number of increments for single decimal degrees.</p></li>
</ul>
</dd>
</dl>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments for a complete turn of an axis and number of increments for single decimal degrees.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_ang">
<code class="sig-name descname">_set_ang</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ang</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_ang"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_ang" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the arrival angle of a calculated movement for a target.</p>
<p>The orientation of the coordinate system are orthonormal. (Right hand rules, tom pouce for visible polar axis !)</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>ang</strong> – Celestial angle of an axis (degrees)</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if value is not a real.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_angsimu">
<code class="sig-name descname">_set_angsimu</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ang</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_angsimu"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_angsimu" title="Permalink to this definition">¶</a></dt>
<dd><p>In simulation mode, set the arrival angle of a calculated movement for a target.</p>
<p>The orientation of the coordinate system are orthonormal. (Right hand rules, tom pouce for visible polar axis !)</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>ang</strong> – Celestial angle of an axis (degrees)</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if value is not a real.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_axis_type">
<code class="sig-name descname">_set_axis_type</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">axis_type</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_axis_type"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_axis_type" title="Permalink to this definition">¶</a></dt>
<dd><dl class="simple">
<dt>Set type and mechanical position of an axis on the mount.</dt><dd><ul class="simple">
<li><p>BASE : Azimut or hour angle axis,</p></li>
<li><p>POLAR : Elevation or declination axix,</p></li>
<li><p>ROT : Derotator system for non equatorial mount (if equiped),</p></li>
<li><p>YAW : Equivalent to secondary azymtuh base (for Alt-Alt mount).</p></li>
</ul>
</dd>
</dl>
<p>:param axis_type : BASE = 0, POLAR = 1, ROT = 2, YAW = 3
:returns: Error if value is not a real.
:rtype: int</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_inc">
<code class="sig-name descname">_set_inc</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">inc</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_inc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_inc" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the value for actual increments position of an axis, direct interogation of the controller.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>inc</strong> – Value of the increments for the actual position.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if value is not a real.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_inc0">
<code class="sig-name descname">_set_inc0</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">inc0</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_inc0"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_inc0" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the value of increments for “rot=0”. When mount was initialized, the “inc0” are set by the fonction “update_inc0”.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>inc0</strong> – Value of the increments for “rot=0” (for example : 1800)</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if increment is not positive.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_inc_per_deg">
<code class="sig-name descname">_set_inc_per_deg</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">inc_per_deg</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_inc_per_deg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_inc_per_deg" title="Permalink to this definition">¶</a></dt>
<dd><div class="admonition attention">
<p class="admonition-title">Attention</p>
<p>no setting for this attribute</p>
</div>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>inc_per_deg</strong> (<em>float</em>) – Incrment per degree</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if ratio is not positive.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_inc_per_motor_rev">
<code class="sig-name descname">_set_inc_per_motor_rev</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">nbr_inc</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_inc_per_motor_rev"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_inc_per_motor_rev" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the number of increments for a single turn of the motor.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>nbr_inc</strong> (<em>float</em>) – Number of increments for a single turn of the motor (for example : 1000).</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if ratio is not positive.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_inc_per_sky_rev">
<code class="sig-name descname">_set_inc_per_sky_rev</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">inc_per_sky_rev</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_inc_per_sky_rev"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_inc_per_sky_rev" title="Permalink to this definition">¶</a></dt>
<dd><div class="admonition attention">
<p class="admonition-title">Attention</p>
<p>no setting for this attribute</p>
</div>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>inc_per_sky_rev</strong> (<em>float</em>) – Incrment per sky turn</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if ratio is not positive.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_incsimu">
<code class="sig-name descname">_set_incsimu</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">inc</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_incsimu"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_incsimu" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the value for actual increments position of an axis in simulation mode.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>inc</strong> – Value of the increments for the simulated position.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if value is not a real.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_language_protocol">
<code class="sig-name descname">_set_language_protocol</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">language_protocol</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_language_protocol"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_language_protocol" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the type of controller language protocol for an axis (for example : SCX 11 type, or another).</p>
<p>:param language_protocol : Specified the protocol language type (for example : SCX11)
:returns: Error if value is not a real.
:rtype: int</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_latitude">
<code class="sig-name descname">_set_latitude</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">latitude_deg</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_latitude"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_latitude" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the latitude of the observational site. Positive for north.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>latitude_deg</strong> (<em>float</em>) – Latitude of site (for example : 47.2 Degrees)</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if value is not a real.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_motion_state">
<code class="sig-name descname">_set_motion_state</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">motion_state</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_motion_state"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_motion_state" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the current motion state</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Error code (0=no error).</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_motion_state_simu">
<code class="sig-name descname">_set_motion_state_simu</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">motion_state</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_motion_state_simu"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_motion_state_simu" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the current motion state for simulation</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Error code (0=no error).</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_name">
<code class="sig-name descname">_set_name</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">name</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_name"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_name" title="Permalink to this definition">¶</a></dt>
<dd><div class="admonition attention">
<p class="admonition-title">Attention</p>
<p>no setting for this attribute</p>
</div>
<dl class="simple">
<dt>The name are setted at the instanciation of the mount axis. The name of an axis can have several value :</dt><dd><ul class="simple">
<li><p>Declination,</p></li>
<li><p>Azimuth</p></li>
<li><p>Hour angle,</p></li>
<li><p>Elevation,</p></li>
<li><p>Rotator,</p></li>
<li><p>Roll,</p></li>
<li><p>Pitch,</p></li>
<li><p>Yaw,</p></li>
</ul>
</dd>
</dl>
<p>You cannot set the value cause it is an protected attribute.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>name</strong> (<em>str</em>) – Name of the axis</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if ratio is not positive.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_ratio_puley_motor">
<code class="sig-name descname">_set_ratio_puley_motor</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ratio</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_ratio_puley_motor"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_ratio_puley_motor" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the ratio between pulley and motor, take care about the ratio of motor reducer type.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>ratio</strong> (<em>float</em>) – Ratio between pulley and motor (for example : 100).</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if ratio are not strictly positive.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_ratio_wheel_puley">
<code class="sig-name descname">_set_ratio_wheel_puley</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ratio</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_ratio_wheel_puley"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_ratio_wheel_puley" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the ratio between wheel and motor puley, in diameter.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>ratio</strong> – Ratio between wheel and puley (for exampe : 5.25)</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if ratio are not strictly positive.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_real">
<code class="sig-name descname">_set_real</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">real</span><span class="p">:</span> <span class="n">bool</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_real"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_real" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the axis in real mode or simulation mode. With simulation mode, the value of the axis are given by Mountaxis simulation value.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>real</strong> – True or False.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if value is not a real.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_senseang">
<code class="sig-name descname">_set_senseang</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sense</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_senseang"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_senseang" title="Permalink to this definition">¶</a></dt>
<dd><p>If progression of mechanical angles referentiel are positive and progression of rot0 are positive, ‘set_senseang’ are positive. However, ‘set_senseang’ are negative when progression are inverse.</p>
<p>The sense depend of the orientation of celestial coordinates systems and mechanical coordinates systems.</p>
<p>The orientation of the coordinate system are orthonormal. (Right hand rules, tom pouce for visible polar axis !)</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>sense</strong> – Value sense are “-1” or “1”.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if value is not a real.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_senseinc">
<code class="sig-name descname">_set_senseinc</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sense</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_senseinc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_senseinc" title="Permalink to this definition">¶</a></dt>
<dd><p>If progression of increments are positive and progression of rot0 are positive, senseinc are positive. However, senseinc are negative when progression are inverse.</p>
<p>The sense depend of the physical rolling sense of motor cable system.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>sense</strong> – Value sense are “-1” or “1”.</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if value is not a real.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_simu_current_velocity">
<code class="sig-name descname">_set_simu_current_velocity</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">simu_current_velocity_deg_per_sec</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_simu_current_velocity"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_simu_current_velocity" title="Permalink to this definition">¶</a></dt>
<dd><div class="admonition attention">
<p class="admonition-title">Attention</p>
<p>no setting for this attribute</p>
</div>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Error if ratio is not positive.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_slew_deg_per_sec">
<code class="sig-name descname">_set_slew_deg_per_sec</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">deg_per_sec</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_slew_deg_per_sec"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_slew_deg_per_sec" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the setting speed for a goto motion.</p>
<p>The value are limited by the maximun limited speed (_slewmax_deg_per_sec)</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>deg_per_sec</strong> (<em>float</em>) – Speed for a goto movement in degrees / sec (for example : 30).</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if value is not a real.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis._set_slewmax_deg_per_sec">
<code class="sig-name descname">_set_slewmax_deg_per_sec</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">deg_per_sec</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span> &#x2192; int<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis._set_slewmax_deg_per_sec"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis._set_slewmax_deg_per_sec" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the maximum speed for slew motion. Set carrefully this parameter due to issue response of the mount.</p>
<p>The value have a maximum (for example : 30)</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>deg_per_sec</strong> (<em>float</em>) – Speed for a slewing movement in degrees / sec (for example : 30)</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Error if value is not a real.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.ang">
<em class="property">property </em><code class="sig-name descname">ang</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.ang" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the arrival angle of a calculated movement for a target.</p>
<p>The orientation of the coordinate system are orthonormal. (Right hand rules, tom pouce for visible polar axis !)</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Error if value is not a real.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.ang2rot">
<code class="sig-name descname">ang2rot</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ang</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">pierside</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">1</span></em>, <em class="sig-param"><span class="n">save</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">0</span></em><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis.ang2rot"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.ang2rot" title="Permalink to this definition">¶</a></dt>
<dd><p>Calculation rot from ang and pierside.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>ang</strong> (<em>float</em>) – Celestial angle (degrees)</p></li>
<li><p><strong>pierside</strong> (<em>int</em>) – <p>Location of the optical tube against the mount pier:</p>
<ul>
<li><p>PIERSIDE_POS1 (=1) normal position</p></li>
<li><p>PIERSIDE_POS2 (=-1) back flip position</p></li>
</ul>
</p></li>
<li><p><strong>save</strong> (<em>int</em>) – <p>Define how the results are stored:</p>
<ul>
<li><p>SAVE_NONE (=0)</p></li>
<li><p>SAVE_AS_SIMU (=1)</p></li>
<li><p>SAVE_AS_REAL (=2)</p></li>
</ul>
</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>rot</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
<p>The rot value is computed according rot, _latitude, _senseang and _axis_type.
The save parameter allows to update the real or simu internal values of and, pierside and rot:</p>
<blockquote>
<div><ul class="simple">
<li><p>SAVE_AS_SIMU: Only _angsimu, _rotsimu and _piersidesimu for simulated values are updated.</p></li>
<li><p>SAVE_AS_REAL: Only _ang, _rot and _pierside for real values are updated.</p></li>
<li><p>SAVE_NONE: No internal variables are updates.</p></li>
</ul>
</div></blockquote>
<p>Instanciation of the axis is indispensable.</p>
<dl class="field-list simple">
<dt class="field-odd">Instanciation Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;HA&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span><span class="o">.</span><span class="n">ang2rot</span><span class="p">(</span><span class="o">-</span><span class="mi">10</span><span class="p">,</span> <span class="n">axisb</span><span class="o">.</span><span class="n">PIERSIDE_POS1</span><span class="p">,</span> <span class="n">axisb</span><span class="o">.</span><span class="n">SAVE_NONE</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.angsimu">
<em class="property">property </em><code class="sig-name descname">angsimu</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.angsimu" title="Permalink to this definition">¶</a></dt>
<dd><p>In simulation mode, get the arrival angle of a calculated movement for a target.</p>
<p>The orientation of the coordinate system are orthonormal. (Right hand rules, tom pouce for visible polar axis !)</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Error if value is not a real.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.axis_type">
<em class="property">property </em><code class="sig-name descname">axis_type</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.axis_type" title="Permalink to this definition">¶</a></dt>
<dd><dl class="simple">
<dt>Get type and mechanical position of an axis on the mount.</dt><dd><ul class="simple">
<li><p>BASE : Azimut or hour angle axis,</p></li>
<li><p>POLAR : Elevation or declination axix,</p></li>
<li><p>ROT : Derotator system for non equatorial mount (if equiped),</p></li>
<li><p>YAW : Equivalent to secondary azymtuh base (for Alt-Alt mount).</p></li>
</ul>
</dd>
</dl>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>BASE = 0, POLAR = 1, ROT = 2, YAW = 3</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.disp">
<code class="sig-name descname">disp</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis.disp"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.disp" title="Permalink to this definition">¶</a></dt>
<dd><p>Get information about an axis and print it on the console. Usefull for debug.
Instanciation of the axis are indispensable. However, the mountaxis module when running, have by default axisb et axisp instancied.</p>
<dl class="field-list simple">
<dt class="field-odd">Instanciation Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;HA&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">axisp</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;DEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span><span class="o">.</span><span class="n">disp</span><span class="p">()</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">axisp</span><span class="o">.</span><span class="n">disp</span><span class="p">()</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Return table of an axis</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">--------------------</span>
<span class="n">AXIS</span> <span class="n">name</span>         <span class="o">=</span> <span class="n">SCX11</span>
<span class="n">axis_type</span>         <span class="o">=</span> <span class="n">HA</span>
<span class="n">latitude</span>          <span class="o">=</span> <span class="mi">43</span>
<span class="n">real</span> <span class="n">hardware</span>     <span class="o">=</span> <span class="kc">False</span>
<span class="o">--------------------</span>
<span class="n">ratio_wheel_puley</span> <span class="o">=</span> <span class="mf">5.25</span>
<span class="n">ratio_puley_motor</span> <span class="o">=</span> <span class="mf">100.0</span>
<span class="n">inc_per_motor_rev</span> <span class="o">=</span> <span class="mf">1000.0</span>
<span class="o">--------------------</span>
<span class="n">inc_per_sky_rev</span>   <span class="o">=</span> <span class="mf">525000.0</span>
<span class="n">inc_per_deg</span>       <span class="o">=</span> <span class="mf">1458.3333333333333</span>
<span class="o">--------------------</span>
<span class="n">senseinc</span>          <span class="o">=</span> <span class="mi">1</span>            <span class="p">:</span> <span class="mi">1</span><span class="o">=</span><span class="n">positive</span>
<span class="n">inc0</span>              <span class="o">=</span>          <span class="mf">0.0</span> <span class="p">:</span> <span class="n">Place</span> <span class="n">mount</span> <span class="n">rot</span> <span class="n">at</span> <span class="n">meridian</span> <span class="ow">and</span> <span class="nb">set</span> <span class="n">inc0</span> <span class="o">=</span> <span class="n">inc</span>
<span class="n">senseang</span>          <span class="o">=</span> <span class="mi">1</span>            <span class="p">:</span> <span class="mi">1</span><span class="o">=</span><span class="n">positive</span>
<span class="o">--------------------</span>
<span class="n">slew_deg_per_sec</span>  <span class="o">=</span> <span class="mf">5.0</span>
<span class="o">--------------------</span> <span class="n">SIMU</span> <span class="n">INC</span> <span class="o">-&gt;</span> <span class="n">ANG</span> <span class="o">=</span> <span class="n">HA</span>
<span class="n">inc</span>               <span class="o">=</span>          <span class="mf">0.0</span> <span class="p">:</span> <span class="n">inc</span> <span class="ow">is</span> <span class="n">read</span> <span class="kn">from</span> <span class="nn">encoder</span>
<span class="n">rot</span>               <span class="o">=</span>    <span class="mf">0.0000000</span> <span class="p">:</span> <span class="n">rot</span> <span class="o">=</span> <span class="p">(</span><span class="n">inc</span> <span class="o">-</span> <span class="n">inc0</span><span class="p">)</span> <span class="o">*</span> <span class="n">senseinc</span> <span class="o">/</span> <span class="n">inc_per_deg</span>
<span class="n">pierside</span>          <span class="o">=</span> <span class="mi">1</span>            <span class="p">:</span> <span class="n">pierside</span> <span class="n">must</span> <span class="n">be</span> <span class="n">given</span> <span class="n">by</span> <span class="n">polar</span> <span class="n">axis</span>
<span class="n">ang</span>               <span class="o">=</span>    <span class="mf">0.0000000</span> <span class="p">:</span> <span class="n">ang</span> <span class="o">=</span> <span class="n">senseang</span> <span class="o">*</span> <span class="n">rot</span>
<span class="o">--------------------</span> <span class="n">SIMU</span> <span class="n">ANG</span> <span class="o">=</span> <span class="n">HA</span> <span class="o">-&gt;</span> <span class="n">INC</span>
<span class="n">ang</span>               <span class="o">=</span>    <span class="mf">0.0000000</span> <span class="p">:</span> <span class="n">Next</span> <span class="n">target</span> <span class="n">celestial</span> <span class="n">angle</span> <span class="n">HA</span>
<span class="n">pierside</span>          <span class="o">=</span> <span class="mi">1</span>            <span class="p">:</span> <span class="n">Next</span> <span class="n">target</span> <span class="n">pier</span> <span class="n">side</span> <span class="p">(</span><span class="o">+</span><span class="mi">1</span> <span class="ow">or</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span>
<span class="n">rot</span>               <span class="o">=</span>    <span class="mf">0.0000000</span> <span class="p">:</span> <span class="n">rot</span> <span class="o">=</span> <span class="o">-</span><span class="n">ang</span> <span class="o">/</span> <span class="n">senseang</span>
<span class="n">inc</span>               <span class="o">=</span>          <span class="mf">0.0</span> <span class="p">:</span> <span class="n">inc</span> <span class="o">=</span> <span class="n">inc0</span> <span class="o">+</span> <span class="n">rot</span> <span class="o">*</span> <span class="n">inc_per_deg</span> <span class="o">/</span> <span class="n">senseinc</span>
<span class="o">--------------------</span> <span class="n">REAL</span> <span class="n">INC</span> <span class="o">-&gt;</span> <span class="n">ANG</span> <span class="o">=</span> <span class="n">HA</span>
<span class="n">inc</span>               <span class="o">=</span>          <span class="mf">0.0</span> <span class="p">:</span> <span class="n">inc</span> <span class="ow">is</span> <span class="n">read</span> <span class="kn">from</span> <span class="nn">encoder</span>
<span class="n">rot</span>               <span class="o">=</span>    <span class="mf">0.0000000</span> <span class="p">:</span> <span class="n">rot</span> <span class="o">=</span> <span class="p">(</span><span class="n">inc</span> <span class="o">-</span> <span class="n">inc0</span><span class="p">)</span> <span class="o">*</span> <span class="n">senseinc</span> <span class="o">/</span> <span class="n">inc_per_deg</span>
<span class="n">pierside</span>          <span class="o">=</span> <span class="mi">1</span>            <span class="p">:</span> <span class="n">pierside</span> <span class="n">must</span> <span class="n">be</span> <span class="n">given</span> <span class="n">by</span> <span class="n">polar</span> <span class="n">axis</span>
<span class="n">ang</span>               <span class="o">=</span>    <span class="mf">0.0000000</span> <span class="p">:</span> <span class="n">ang</span> <span class="o">=</span> <span class="n">senseang</span> <span class="o">*</span> <span class="n">rot</span>
<span class="o">--------------------</span> <span class="n">REAL</span> <span class="n">ANG</span> <span class="o">=</span> <span class="n">HA</span> <span class="o">-&gt;</span> <span class="n">INC</span>
<span class="n">ang</span>               <span class="o">=</span>    <span class="mf">0.0000000</span> <span class="p">:</span> <span class="n">Next</span> <span class="n">target</span> <span class="n">celestial</span> <span class="n">angle</span> <span class="n">HA</span>
<span class="n">pierside</span>          <span class="o">=</span> <span class="mi">1</span>            <span class="p">:</span> <span class="n">Next</span> <span class="n">target</span> <span class="n">pier</span> <span class="n">side</span> <span class="p">(</span><span class="o">+</span><span class="mi">1</span> <span class="ow">or</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span>
<span class="n">rot</span>               <span class="o">=</span>    <span class="mf">0.0000000</span> <span class="p">:</span> <span class="n">rot</span> <span class="o">=</span> <span class="o">-</span><span class="n">ang</span> <span class="o">/</span> <span class="n">senseang</span>
<span class="n">inc</span>               <span class="o">=</span>          <span class="mf">0.0</span> <span class="p">:</span> <span class="n">inc</span> <span class="o">=</span> <span class="n">inc0</span> <span class="o">+</span> <span class="n">rot</span> <span class="o">*</span> <span class="n">inc_per_deg</span> <span class="o">/</span> <span class="n">senseinc</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.inc">
<em class="property">property </em><code class="sig-name descname">inc</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.inc" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the value for actual increments position of an axis, direct interogation of the controller.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments (for example : 37265)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.inc0">
<em class="property">property </em><code class="sig-name descname">inc0</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.inc0" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the value of increments for “rot=0”.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments for “rot=0” (for example : 1800)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.inc2rot">
<code class="sig-name descname">inc2rot</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">inc</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">save</span><span class="o">=</span><span class="default_value">0</span></em><span class="sig-paren">)</span> &#x2192; tuple<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis.inc2rot"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.inc2rot" title="Permalink to this definition">¶</a></dt>
<dd><p>Calculation of rot and pierside from inc.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>inc</strong> (<em>float</em>) – Encoder increments (inc)</p></li>
<li><p><strong>save</strong> (<em>int</em>) – <p>Define how the results are stored:</p>
<ul>
<li><p>SAVE_NONE (=0)</p></li>
<li><p>SAVE_AS_SIMU (=1)</p></li>
<li><p>SAVE_AS_REAL (=2)</p></li>
</ul>
</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Tuple of (rot, pierside)</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>tuple</p>
</dd>
</dl>
<p>The rot value is computed according inc, _inc0, _senseinc, _inc_per_deg and _axis_type.
The save parameter allows to update the real or simu internal values of inc and rot:</p>
<blockquote>
<div><ul class="simple">
<li><p>SAVE_AS_SIMU: Only _incsimu, _rotsimu and _piersidesimu for simulated values are updated.</p></li>
<li><p>SAVE_AS_REAL: Only _inc, _rot and _pierside for real values are updated.</p></li>
<li><p>SAVE_NONE: No internal variables are updates.</p></li>
</ul>
</div></blockquote>
<p>Instanciation of the axis is indispensable.</p>
<dl class="field-list simple">
<dt class="field-odd">Instanciation Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;HA&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span><span class="o">.</span><span class="n">inc2rot</span><span class="p">(</span><span class="mi">2000</span><span class="p">,</span><span class="n">axisb</span><span class="o">.</span><span class="n">SAVE_NONE</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.inc_per_deg">
<em class="property">property </em><code class="sig-name descname">inc_per_deg</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.inc_per_deg" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the number of increments for a single degrees on the sky.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments (for example : env 970000)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.inc_per_motor_rev">
<em class="property">property </em><code class="sig-name descname">inc_per_motor_rev</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.inc_per_motor_rev" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the number of increments for a single turn of the motor.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments for a single turn of the motor (for example : 1000).</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.inc_per_sky_rev">
<em class="property">property </em><code class="sig-name descname">inc_per_sky_rev</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.inc_per_sky_rev" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the number of increments for a single complete turn on the sky.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.incsimu">
<em class="property">property </em><code class="sig-name descname">incsimu</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.incsimu" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the value for actual increments position of an axis, direct interogation of the controller. Value are real if axle is real.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Number of increments in simulation mode (for example : 37265)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.language_protocol">
<em class="property">property </em><code class="sig-name descname">language_protocol</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.language_protocol" title="Permalink to this definition">¶</a></dt>
<dd><p>SCX 11 type, or another).</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Type of controller language.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>str</p>
</dd>
<dt class="field-odd">Type</dt>
<dd class="field-odd"><p>Get the type of controller language protocol for an axis (for example</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.latitude">
<em class="property">property </em><code class="sig-name descname">latitude</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.latitude" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the latitude of the observational site. Positive for north.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Latitude of site (for example : 47,2 Degrees)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>str</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.motion_state">
<em class="property">property </em><code class="sig-name descname">motion_state</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.motion_state" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the current motion state</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Moton state code (0=no motion, 1=slewing, 2=drifting, 3=moving).</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
<p>Slewiwng state is an absolute motion followed by a drift.
Moving state is an infinite motion. If a Moving is stopped we retreive the Drift state.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.motion_state_simu">
<em class="property">property </em><code class="sig-name descname">motion_state_simu</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.motion_state_simu" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the current motion state for simulation</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Moton state code (0=no motion, 1=slewing, 2=drifting, 3=moving).</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
<p>Slewiwng state is an absolute motion followed by a drift.
Moving state is an infinite motion. If a Moving is stopped we retreive the Drift state.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.name">
<em class="property">property </em><code class="sig-name descname">name</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.name" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the nickname of the axis.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Nickname of the axis (for example : Declination, …)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>str</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.ratio_puley_motor">
<em class="property">property </em><code class="sig-name descname">ratio_puley_motor</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.ratio_puley_motor" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the ratio between pulley and motor.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Ratio between pulley and motor (for example : 100).</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.ratio_wheel_puley">
<em class="property">property </em><code class="sig-name descname">ratio_wheel_puley</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.ratio_wheel_puley" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the ratio between wheel and motor puley, in diameter.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Ratio between wheel and motor puley (for example : 5.25)</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.real">
<em class="property">property </em><code class="sig-name descname">real</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.real" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the axis mode, real or simulation.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>True or False</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>bool</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.rot2ang">
<code class="sig-name descname">rot2ang</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">rot</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">pierside</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">save</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">0</span></em><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis.rot2ang"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.rot2ang" title="Permalink to this definition">¶</a></dt>
<dd><p>Calculation of ang from rot and pierside.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>rot</strong> (<em>float</em>) – Rotation angle (degrees)</p></li>
<li><p><strong>pierside</strong> (<em>int</em>) – <p>Location of the optical tube against the mount pier:</p>
<ul>
<li><p>PIERSIDE_POS1 (=1) normal position</p></li>
<li><p>PIERSIDE_POS2 (=-1) back flip position</p></li>
</ul>
</p></li>
<li><p><strong>save</strong> (<em>int</em>) – <p>Define how the results are stored:</p>
<ul>
<li><p>SAVE_NONE (=0)</p></li>
<li><p>SAVE_AS_SIMU (=1)</p></li>
<li><p>SAVE_AS_REAL (=2)</p></li>
</ul>
</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>ang</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
<p>The ang value is computed according rot, _latitude, _senseang and _axis_type.
The save parameter allows to update the real or simu internal values of and, pierside and rot:</p>
<blockquote>
<div><ul class="simple">
<li><p>SAVE_AS_SIMU: Only _angsimu, _rotsimu and _piersidesimu for simulated values are updated.</p></li>
<li><p>SAVE_AS_REAL: Only _ang, _rot and _pierside for real values are updated.</p></li>
<li><p>SAVE_NONE: No internal variables are updates.</p></li>
</ul>
</div></blockquote>
<p>Instanciation of the axis is indispensable.</p>
<dl class="field-list simple">
<dt class="field-odd">Instanciation Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;HA&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span><span class="o">.</span><span class="n">rot2ang</span><span class="p">(</span><span class="mi">10</span><span class="p">,</span> <span class="n">axisb</span><span class="o">.</span><span class="n">PIERSIDE_POS1</span><span class="p">,</span> <span class="n">axisb</span><span class="o">.</span><span class="n">SAVE_NONE</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.rot2inc">
<code class="sig-name descname">rot2inc</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">rot</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">save</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">0</span></em><span class="sig-paren">)</span> &#x2192; float<a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis.rot2inc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.rot2inc" title="Permalink to this definition">¶</a></dt>
<dd><p>Calculation of inc from rot.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>rot</strong> (<em>float</em>) – Rotation angle (degrees)</p></li>
<li><p><strong>save</strong> (<em>int</em>) – <p>Define how the results are stored:</p>
<ul>
<li><p>SAVE_NONE (=0)</p></li>
<li><p>SAVE_AS_SIMU (=1)</p></li>
<li><p>SAVE_AS_REAL (=2)</p></li>
</ul>
</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>inc</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
<p>The inc value is computed according rot, _inc0, _senseinc, _inc_per_deg.
The inc values are calculated in the interval from -inc_per_sky_rev/2 to +inc_per_sky_rev/2.
The save parameter allows to update the real or simu internal values of inc and rot:</p>
<blockquote>
<div><ul class="simple">
<li><p>SAVE_AS_SIMU: Only _incsimu, _rotsimu for simulated values are updated.</p></li>
<li><p>SAVE_AS_REAL: Only _inc, _rot for real values are updated.</p></li>
<li><p>SAVE_NONE: No internal variables are updates.</p></li>
</ul>
</div></blockquote>
<p>Instanciation of the axis is indispensable.</p>
<dl class="field-list simple">
<dt class="field-odd">Instanciation Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;HA&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span><span class="o">.</span><span class="n">rot2inc</span><span class="p">(</span><span class="mi">10</span><span class="p">,</span><span class="n">axisb</span><span class="o">.</span><span class="n">SAVE_NONE</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.senseang">
<em class="property">property </em><code class="sig-name descname">senseang</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.senseang" title="Permalink to this definition">¶</a></dt>
<dd><p>If progression of mechanical angles referentiel are positive and progression of rot0 are positive, ‘set_senseang’ are positive. However, ‘set_senseang’ are negative when progression are inverse.</p>
<p>The sense depend of the orientation of celestial coordinates systems and mechanical coordinates systems.</p>
<p>The orientation of the coordinate system are orthonormal. (Right hand rules, tom pouce for visible polar axis !)</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Error if value is not a real.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.senseinc">
<em class="property">property </em><code class="sig-name descname">senseinc</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.senseinc" title="Permalink to this definition">¶</a></dt>
<dd><p>If progression of increments are positive and progression of ‘rot0’ are positive, ‘senseinc’ are positive. However, ‘senseinc’ are negative when progression are inverse.</p>
<p>The sense depend of the physical rolling sense of motor cable system.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Value sense are “-1” or “1”.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.simu_current_velocity">
<em class="property">property </em><code class="sig-name descname">simu_current_velocity</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.simu_current_velocity" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the final cruising speed during the motion. Motion are celestial slewing speed or any other, like goto for example.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Terminal velocity speed for a movement in degrees / sec.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.simu_motion_start">
<code class="sig-name descname">simu_motion_start</code><span class="sig-paren">(</span><em class="sig-param"><span class="o">*</span><span class="n">args</span></em>, <em class="sig-param"><span class="o">**</span><span class="n">kwargs</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis.simu_motion_start"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.simu_motion_start" title="Permalink to this definition">¶</a></dt>
<dd><p>Start a simulation motion.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>args</strong> (<em>args</em>) – First args is a string to define the type of motion to do.</p></li>
<li><p><strong>kwargs</strong> (<em>kwargs</em>) – Dictionnary of motion parameters:</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>_incsimu</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
<p>Types of motion can be:</p>
<blockquote>
<div><ul class="simple">
<li><p>SLEW or ABSOLUTE: Absolute position of the target position.</p></li>
<li><p>MOVE or CONTINUOUS: Infinite motion.</p></li>
</ul>
</div></blockquote>
<p>Dictionnary of motion parameters are:</p>
<blockquote>
<div><ul>
<li><p>Case motion type = SLEW or ABSOLUTE:</p>
<blockquote>
<div><ul class="simple">
<li><p>POSITION (inc or ang according the FRAME).</p></li>
<li><p>VELOCITY (deg/sec). Can be negative.</p></li>
<li><p>DRIFT (deg/sec). Can be negative.</p></li>
</ul>
</div></blockquote>
</li>
<li><p>Case motion type = MOVE or CONTINUOUS:</p>
<blockquote>
<div><ul class="simple">
<li><p>VELOCITY (deg/sec). Can be negative.</p></li>
<li><p>DRIFT (deg/sec). Can be negative.</p></li>
</ul>
</div></blockquote>
</li>
<li><p>For all cases of motions:</p>
<blockquote>
<div><ul class="simple">
<li><p>FRAME (str). “inc” (by default) or “ang”</p></li>
</ul>
</div></blockquote>
</li>
</ul>
</div></blockquote>
<p>Instanciation of the axis is mandatory.</p>
<dl class="field-list simple">
<dt class="field-odd">Instanciation Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;HA&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span><span class="o">.</span><span class="n">simu_motion_start</span><span class="p">(</span><span class="s2">&quot;SLEW&quot;</span><span class="p">,</span> <span class="n">position</span><span class="o">=</span><span class="mi">1000</span><span class="p">,</span> <span class="n">velocity</span><span class="o">=</span><span class="mi">100</span><span class="p">,</span> <span class="n">frame</span><span class="o">=</span><span class="s1">&#39;inc&#39;</span><span class="p">,</span> <span class="n">drift</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.simu_motion_stop">
<code class="sig-name descname">simu_motion_stop</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis.simu_motion_stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.simu_motion_stop" title="Permalink to this definition">¶</a></dt>
<dd><p>Stop a simulation motion.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.simu_motion_stop_move">
<code class="sig-name descname">simu_motion_stop_move</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis.simu_motion_stop_move"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.simu_motion_stop_move" title="Permalink to this definition">¶</a></dt>
<dd><p>Stop a moving motion.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.simu_update_inc">
<code class="sig-name descname">simu_update_inc</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis.simu_update_inc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.simu_update_inc" title="Permalink to this definition">¶</a></dt>
<dd><p>Calculate the current position of a simulation motion.</p>
<p>A simple rectangular profile is applied to velocity.</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.slew_deg_per_sec">
<em class="property">property </em><code class="sig-name descname">slew_deg_per_sec</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.slew_deg_per_sec" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the setting speed of a goto motion.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Speed for a goto movement in degrees / sec.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>int</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.slewmax_deg_per_sec">
<em class="property">property </em><code class="sig-name descname">slewmax_deg_per_sec</code><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.slewmax_deg_per_sec" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the maximum speed for slew motion.</p>
<p>The value have a maximum, setting by a limit (_slewmax_deg_per_sec).</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>Maximum speed for a goto movement in degrees / sec.</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>float</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.synchro_real2simu">
<code class="sig-name descname">synchro_real2simu</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis.synchro_real2simu"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.synchro_real2simu" title="Permalink to this definition">¶</a></dt>
<dd><dl class="simple">
<dt>Synchronisation between simulation value of axis to real values of the axis. Parameters are setted :</dt><dd><ul class="simple">
<li><p>_incsimu,</p></li>
<li><p>_rotsimu,</p></li>
<li><p>_angsimu,</p></li>
<li><p>_piersidesimu,</p></li>
</ul>
</dd>
</dl>
<p>Useful for ending slewing movement to prevent difference offset due to calculation time of the simulation mode.</p>
<p>Instanciation of the axis are indispensable. However, the mountaxis module when running, have by default axisb et axisp instancied.</p>
<dl class="field-list simple">
<dt class="field-odd">Instanciation Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;HA&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">axisp</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;DEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span><span class="o">.</span><span class="n">synchro_real2simu</span><span class="p">()</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">axisp</span><span class="o">.</span><span class="n">synchro_real2simu</span><span class="p">()</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>No message returned by the fonction</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.synchro_simu2real">
<code class="sig-name descname">synchro_simu2real</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis.synchro_simu2real"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.synchro_simu2real" title="Permalink to this definition">¶</a></dt>
<dd><dl class="simple">
<dt>Synchronisation between real value of axis to simulation values of the axis. Parameters are setted :</dt><dd><ul class="simple">
<li><p>_inc,</p></li>
<li><p>_rot,</p></li>
<li><p>_ang,</p></li>
<li><p>_pierside,</p></li>
</ul>
</dd>
</dl>
<p>Useful for ending slewing movement to prevent difference offset due to calculation time of the simulation mode.</p>
<p>Instanciation of the axis are indispensable. However, the mountaxis module when running, have by default axisb et axisp instancied.</p>
<dl class="field-list simple">
<dt class="field-odd">Instanciation Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;HA&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">axisp</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;DEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span><span class="o">.</span><span class="n">sydispnchro_simu2real</span><span class="p">()</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">axisp</span><span class="o">.</span><span class="n">synchro_simu2real</span><span class="p">()</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>No message returned by the fonction</p>
</dd>
</dl>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountaxis.Mountaxis.update_inc0">
<code class="sig-name descname">update_inc0</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">inc</span></em>, <em class="sig-param"><span class="n">ang</span></em>, <em class="sig-param"><span class="n">pierside</span><span class="o">=</span><span class="default_value">1</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountaxis.html#Mountaxis.update_inc0"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountaxis.Mountaxis.update_inc0" title="Permalink to this definition">¶</a></dt>
<dd><p>Update the value of the inc0.</p>
<p>Instanciation of the axis are indispensable. However, the mountaxis module when running, have by default axisb et axisp instancied.</p>
<dl class="field-list simple">
<dt class="field-odd">Instanciation Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;HA&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">axisp</span> <span class="o">=</span> <span class="n">Mountaxis</span><span class="p">(</span><span class="s2">&quot;DEC&quot;</span><span class="p">,</span> <span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;Unknown&quot;</span><span class="p">)</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Usage</dt>
<dd class="field-odd"><p></p></dd>
</dl>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">axisb</span><span class="o">.</span><span class="n">update_inc0</span><span class="p">()</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">axisp</span><span class="o">.</span><span class="n">update_inc0</span><span class="p">()</span>
</pre></div>
</div>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>inc</strong> – </p></li>
<li><p><strong>ang</strong> – </p></li>
<li><p><strong>pierside</strong> – </p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>No message returned by the fonction.</p>
</dd>
</dl>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-mountastro.mountchannel">
<span id="mountastro-mountchannel"></span><h3>mountastro.mountchannel<a class="headerlink" href="#module-mountastro.mountchannel" title="Permalink to this headline">¶</a></h3>
</div>
<div class="section" id="module-mountastro.mounttools">
<span id="mountastro-mounttools"></span><h3>mountastro.mounttools<a class="headerlink" href="#module-mountastro.mounttools" title="Permalink to this headline">¶</a></h3>
</div>
<div class="section" id="module-mountastro.mountpad">
<span id="mountastro-mountpad"></span><h3>mountastro.mountpad<a class="headerlink" href="#module-mountastro.mountpad" title="Permalink to this headline">¶</a></h3>
<dl class="py class">
<dt id="mountastro.mountpad.Mountpad">
<em class="property">class </em><code class="sig-prename descclassname">mountastro.mountpad.</code><code class="sig-name descname">Mountpad</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">main</span></em>, <em class="sig-param"><span class="n">pad_type</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountpad.html#Mountpad"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountpad.Mountpad" title="Permalink to this definition">¶</a></dt>
<dd><p>Pad to drive the mount.</p>
<p>To access to methods of the main thread of the mount
one can use the line under the pad console and type:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="nb">dir</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_main</span><span class="p">)</span>
</pre></div>
</div>
</dd></dl>

</div>
<div class="section" id="module-mountastro.mountlog">
<span id="mountastro-mountlog"></span><h3>mountastro.mountlog<a class="headerlink" href="#module-mountastro.mountlog" title="Permalink to this headline">¶</a></h3>
<dl class="py class">
<dt id="mountastro.mountlog.Mountlog">
<em class="property">class </em><code class="sig-prename descclassname">mountastro.mountlog.</code><code class="sig-name descname">Mountlog</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">agent_alias</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">home</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">'GPS 0 E 43 150'</span></em>, <em class="sig-param"><span class="n">path_data</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">''</span></em>, <em class="sig-param"><span class="n">path_www</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">''</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountlog.html#Mountlog"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountlog.Mountlog" title="Permalink to this definition">¶</a></dt>
<dd><p>Manage logs in display, file and database.</p>
<p>First, create an instance:
log = Mountlog(“test”,None)</p>
<p>Second, use the print methods to log:
log.print(“Something to log”)</p>
<dl class="py method">
<dt id="mountastro.mountlog.Mountlog.file">
<code class="sig-name descname">file</code><span class="sig-paren">(</span><em class="sig-param"><span class="o">*</span><span class="n">args</span></em>, <em class="sig-param"><span class="o">**</span><span class="n">kwargs</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountlog.html#Mountlog.file"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountlog.Mountlog.file" title="Permalink to this definition">¶</a></dt>
<dd><p>This is the method to print in a log file.
In the log file the message is presented as:
Date-ISO message
The last file is also apended with the message</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountlog.Mountlog.print">
<code class="sig-name descname">print</code><span class="sig-paren">(</span><em class="sig-param"><span class="o">*</span><span class="n">args</span></em>, <em class="sig-param"><span class="o">**</span><span class="n">kwargs</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountlog.html#Mountlog.print"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountlog.Mountlog.print" title="Permalink to this definition">¶</a></dt>
<dd><p>This is the method to print in the console display and in a log file.
In the console display, the message is presented as:
(Agent_name) message
In the log file the message is presented as:
Date-ISO message</p>
</dd></dl>

<dl class="py method">
<dt id="mountastro.mountlog.Mountlog.printd">
<code class="sig-name descname">printd</code><span class="sig-paren">(</span><em class="sig-param"><span class="o">*</span><span class="n">args</span></em>, <em class="sig-param"><span class="o">**</span><span class="n">kwargs</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountlog.html#Mountlog.printd"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountlog.Mountlog.printd" title="Permalink to this definition">¶</a></dt>
<dd><p>Same as print method but only if debug level is &gt; threshold</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="module-mountastro.mountastro_astromecca">
<span id="mountastro-mountastro-astromecca"></span><h3>mountastro.mountastro_astromecca<a class="headerlink" href="#module-mountastro.mountastro_astromecca" title="Permalink to this headline">¶</a></h3>
<dl class="py class">
<dt id="mountastro.mountastro_astromecca.Mountastro_Astromecca">
<em class="property">class </em><code class="sig-prename descclassname">mountastro.mountastro_astromecca.</code><code class="sig-name descname">Mountastro_Astromecca</code><span class="sig-paren">(</span><em class="sig-param"><span class="o">*</span><span class="n">args</span></em>, <em class="sig-param"><span class="o">**</span><span class="n">kwargs</span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro_astromecca.html#Mountastro_Astromecca"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro_astromecca.Mountastro_Astromecca" title="Permalink to this definition">¶</a></dt>
<dd><dl class="py method">
<dt id="mountastro.mountastro_astromecca.Mountastro_Astromecca.hadec_travel">
<code class="sig-name descname">hadec_travel</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/mountastro/mountastro_astromecca.html#Mountastro_Astromecca.hadec_travel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#mountastro.mountastro_astromecca.Mountastro_Astromecca.hadec_travel" title="Permalink to this definition">¶</a></dt>
<dd><p>Exemple of using RUN lutpos1</p>
</dd></dl>

</dd></dl>

</div>
</div>
</div>


            <div class="clearer"></div>
          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Classes for driving mounts</a><ul>
<li><a class="reference internal" href="#module-0">Module mountastro</a><ul>
<li><a class="reference internal" href="#module-mountastro.mountastro">mountastro.mountastro</a></li>
<li><a class="reference internal" href="#module-mountastro.mountaxis">mountastro.mountaxis</a></li>
<li><a class="reference internal" href="#module-mountastro.mountchannel">mountastro.mountchannel</a></li>
<li><a class="reference internal" href="#module-mountastro.mounttools">mountastro.mounttools</a></li>
<li><a class="reference internal" href="#module-mountastro.mountpad">mountastro.mountpad</a></li>
<li><a class="reference internal" href="#module-mountastro.mountlog">mountastro.mountlog</a></li>
<li><a class="reference internal" href="#module-mountastro.mountastro_astromecca">mountastro.mountastro_astromecca</a></li>
</ul>
</li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="generate_documentation.html"
                        title="previous chapter">Generate this documentation</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="definition_rotation.html"
                        title="next chapter">Definition of the rotation system of a mount</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/autodoc_mount.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" />
      <input type="submit" value="Go" />
    </form>
    </div>
</div>
<script>$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="definition_rotation.html" title="Definition of the rotation system of a mount"
             >next</a> |</li>
        <li class="right" >
          <a href="generate_documentation.html" title="Generate this documentation"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">Mount Control Software 1.0.0 documentation</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">Classes for driving mounts</a></li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2021, astromecca.
      Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.4.0.
    </div>
  </body>
</html>