{"id":305293,"date":"2020-06-13T15:00:34","date_gmt":"2020-06-13T15:00:34","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=305293"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=305293","title":{"rendered":"\u0421\u043a\u0432\u043e\u0437\u044c \u0442\u0435\u0440\u043d\u0438\u0438 \u043a \u0437\u0432\u0435\u0437\u0434\u0430\u043c: \u0434\u0435\u043b\u0430\u0435\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043b\u0430\u0437\u0435\u0440\u043d\u043e\u0439 \u0443\u043a\u0430\u0437\u043a\u0438 \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u043d\u0435\u0431\u0435\u0441\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/506532\/\">\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>  \u0420\u0435\u0448\u0438\u043b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0441\u0430\u043c\u043e\u0434\u0435\u043b\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bv\/yi\/st\/bvyistbmdjpnx1eefu9ak1aedom.jpeg\"><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u041a\u0414\u041f\u0412 \u0441\u0434\u0435\u043b\u0430\u043b\u0430 \u0441\u0432\u043e\u0435 \u0434\u0435\u043b\u043e \u2014 \u0442\u043e\u0433\u0434\u0430 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442 \ud83d\ude42<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043f\u043e\u0439\u043b\u0435\u0440<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u042f \u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0432\u0441\u0435\u043c<\/div>\n<\/p><\/div>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0410\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c<\/h2>\n<p>  \u0418\u0442\u0430\u043a, \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f:<\/p>\n<ol>\n<li>\u041a\u0443\u0441\u043e\u043a \u0434\u043e\u0441\u043a\u0438 \u0438\u043b\u0438 \u0447\u0435\u0433\u043e \u0443\u0433\u043e\u0434\u043d\u043e, \u043d\u0430 \u0447\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b<\/li>\n<li>\u041f\u043e\u0447\u0442\u0438 \u043b\u044e\u0431\u043e\u0439 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440. \u042f \u0432\u0437\u044f\u043b \u0430\u0440\u0434\u0443\u0438\u043d\u043e \u0443\u043d\u043e \u043a\u0430\u043a \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/li>\n<li>GPS \u043c\u043e\u0434\u0443\u043b\u044c (\u0441 \u043d\u0435\u0433\u043e \u043c\u044b \u0431\u0435\u0440\u0435\u043c \u0434\u0430\u0442\u0443, \u0432\u0440\u0435\u043c\u044f \u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b). \u0422\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0435\u0433\u043e \u0432\u0437\u044f\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0447\u0430\u0441\u043e\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043d\u043e \u0442\u043e\u0433\u0434\u0430 \u0432\u0430\u0448\u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0432\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438 \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043d\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u0437\u0430\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0445\u043e\u043b\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0440\u0442\u0430 \u0441\u0438\u043b\u044c\u043d\u043e \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u0441\u044f <\/li>\n<li>\u0414\u0432\u0430 \u0441\u0435\u0440\u0432\u043e\u043f\u0440\u0438\u0432\u043e\u0434\u0430, \u0438\u043b\u0438 \u0435\u0449\u0435 \u043b\u0443\u0447\u0448\u0435 \u0434\u0432\u0430 \u0448\u0430\u0433\u043e\u0432\u044b\u0445 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f<\/li>\n<li>\u041b\u0430\u0437\u0435\u0440\u043d\u0430\u044f \u0443\u043a\u0430\u0437\u043a\u0430<\/li>\n<li>\u0420\u0430\u0437\u043d\u0430\u044f \u043c\u0435\u043b\u043e\u0447\u044c: \u043f\u0430\u044f\u043b\u044c\u043d\u0438\u043a, \u0442\u0435\u0440\u043c\u043e\u043a\u043b\u0435\u0439, \u043c\u0430\u043a\u0435\u0442\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430, \u043f\u0440\u043e\u0432\u043e\u0434\u0430, \u043a\u043d\u043e\u043f\u043a\u0430, \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440, \u043d\u0443 \u0438 \u043f\u0440\u044f\u043c\u044b\u0435 \u0440\u0443\u043a\u0438.<\/li>\n<\/ol>\n<p>  \u041f\u043e \u0441\u0431\u043e\u0440\u043a\u0435 \u043e\u0441\u043e\u0431\u044b\u0445 \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u0435\u0439 \u043d\u0435\u0442: \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0442\u0435\u0440\u043c\u043e\u043a\u043b\u0435\u0435\u043c.<br \/>  \u0422\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0434\u043e \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0442\u044c\u0441\u044f \u0447\u0442\u043e\u0431\u044b \u043e\u0441\u0438 \u0441\u0435\u0440\u0432\u043e\u043f\u0440\u0438\u0432\u043e\u0434\u043e\u0432 \u0438 \u043b\u0430\u0437\u0435\u0440\u0430 \u0431\u044b\u043b\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u043f\u0435\u043d\u0434\u0438\u043a\u0443\u043b\u044f\u0440\u043d\u044b \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0443, \u044d\u0442\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442 \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u044f.<\/p>\n<h3>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u0422\u0443\u0442 \u0442\u043e\u0436\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e:<\/p>\n<ul>\n<li> GPS \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e uart (\u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e Rx, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u044c<\/li>\n<li> \u0441\u0435\u0440\u0432\u043e\u043f\u0440\u0438\u0432\u043e\u0434\u044b \u2013 \u0432 \u043f\u0438\u043d\u044b 10 (\u043e\u0441\u044c \u0430\u0437\u0438\u043c\u0443\u0442\u0430) \u0438 11 (\u043e\u0441\u044c \u0432\u044b\u0441\u043e\u0442\u044b)<\/li>\n<li> \u043a\u043d\u043e\u043f\u043a\u0430 \u2013 \u0432\u043e 2 \u043f\u0438\u043d<\/li>\n<li> \u043f\u0438\u0442\u0430\u043d\u0438\u0435 \u043d\u0430 \u0432\u0441\u0435 \u043c\u043e\u0434\u0443\u043b\u0438<\/li>\n<li> \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u2013 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440 \u043f\u043e \u043f\u0438\u0442\u0430\u043d\u0438\u044e<\/li>\n<\/ul>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0424\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043c\u043e\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438(19\u041c\u0431)<\/b>                         <\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/lz\/ba\/od\/lzbaod4hfn_xobvq6v4_1y67ttm.jpeg\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bg\/as\/ib\/bgasibn0eig_unnb1lhcb4hbxtg.jpeg\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jn\/ov\/8y\/jnov8ytspu0z5kylgtv_mezrvdc.jpeg\">  <\/div>\n<\/p><\/div>\n<p>  <\/p>\n<h2>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c<\/h2>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u043c\u0443.<\/p>\n<p>  \u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u043b\u043e\u0432\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u0442\u0440\u0438 \u0447\u0430\u0441\u0442\u0438:<\/p>\n<ol>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 GPS, \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u0438 \u0441\u0435\u0440\u0432\u0430\u043c\u0438<\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0430\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0438\u0435\u0439<\/li>\n<li>\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/li>\n<\/ol>\n<p>  \u0417\u0430\u043c\u0435\u0442\u043a\u0438 \u043f\u043e \u043a\u043e\u0434\u0443:<\/p>\n<p>  \u0414\u043b\u044f \u0436\u043f\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 tinygps++<br \/>  \u0414\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438 \u2014 GyverButton<br \/>  \u041a\u043e\u0433\u0434\u0430 \u0436\u043f\u0441 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u0433\u0434\u0435 \u043e\u043d, \u043d\u0430 \u0430\u0440\u0434\u0443\u0438\u043d\u0435 \u0437\u0430\u0433\u043e\u0440\u0430\u0435\u0442\u0441\u044f \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043d\u0430 13\u043c \u043f\u0438\u043d\u0435<br \/>  \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432 \u043a\u043e\u0434\u0435 \u0435\u0441\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u044f\u0440\u043a\u0438\u0445 \u0437\u0432\u0451\u0437\u0434<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#include &lt;math.h&gt; #include &lt;ServoSmooth.h&gt; #include &lt;GyverButton.h&gt; #include &quot;TinyGPS++.h&quot; TinyGPSPlus gps; ServoSmooth yaw; ServoSmooth pitch; GButton but(2); int yr = 0, mo = 0, d = 0, h = 0, m = 0, s = 0; float phi = 0, lambda = 0; float az = 0, height = 0; int counter = 0; float alpha = 0.0, delta = 0.0; float sunalpha = 0, sundelta = 0; float Coordinates[10][2] = {   {0, 0},   {sunalpha * 360 \/ 2 \/ PI, sundelta * 360 \/ 2 \/ PI}, \/\/sun   {297.9458, 8.9233}, \/\/altair   {279.4083, 38.8038}, \/\/vega   {310.5333, 45.3538}, \/\/deneb   {79.55, 46.0163},\/\/capella   {89.0708, 7.4092}, \/\/betelgeuse   {152.3625, 11.8672}, \/\/regul   {51.4458, 49.9319} \/\/mirfak }; int Days(int d, int m, int y)\/\/\u0442\u0443\u0442 \u0441\u0447\u0438\u0442\u0430\u0435\u043c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u043f\u0440\u043e\u0448\u043b\u043e \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0432\u0435\u0441\u0435\u043d\u043d\u0435\u0433\u043e \u0440\u0430\u0432\u043d\u043e\u0434\u0435\u043d\u0441\u0442\u0432\u0438\u044f (21.03) {   int days = 0;   int yearNotLeap[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };   int yearIsLeap[12] = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };    if (((y % 4 == 0) &amp;&amp; (y % 100 != 0)) || (y % 400 == 0))   {     for (int i = 0; i &lt; m - 1; i++)     {       days += yearIsLeap[i];     }   }   else   {     for (int i = 0; i &lt; m - 1; i++)     {       days += yearNotLeap[i];     }   }   if (m == 1) {      return d - 81;   }   else     return days + d - 81; } void GpsGetData() {   while (Serial.available() &gt; 0)     gps.encode(Serial.read());   if (gps.location.isUpdated())   {     phi = gps.location.lat(); \/\/\u0428\u0438\u0440\u043e\u0442\u0430 \u0432 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u0445 (double)     lambda = gps.location.lng(); \/\/ \u0414\u043e\u043b\u0433\u043e\u0442\u0430 \u0432 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u0445 (double)     yr = gps.date.year(); \/\/ \u0413\u043e\u0434 (2000+) (u16)     mo = gps.date.month(); \/\/ \u041c\u0435\u0441\u044f\u0446 (1-12) (u8)     d = gps.date.day(); \/\/ \u0414\u0435\u043d\u044c (1-31) (u8)     h = gps.time.hour(); \/\/ \u0427\u0430\u0441 (0-23) (u8)     m = gps.time.minute(); \/\/ \u041c\u0438\u043d\u0443\u0442\u044b (0-59) (u8)     s = gps.time.second(); \/\/ \u0421\u0435\u043a\u0443\u043d\u0434\u044b (0-59) (u8)   } } void CalculateParams() {   float _time = (h + (float)m \/ 60 + (float)s \/ 3600) * 360.0 \/ 24.0;\/\/\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0432\u0440\u0435\u043c\u044f \u0432 \u0447\u0430\u0441\u0430\u0445   float sunlambda = (float)Days(d, mo, yr) * 360 \/ 365; \/\/ \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u044d\u043a\u043b\u0438\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0434\u043e\u043b\u0433\u043e\u0442\u044b \u0441\u043e\u043b\u043d\u0446\u0430 \u0432 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u0445   sundelta = asin(0.398749 * sin(sunlambda * 2 * PI \/ 360));\/\/\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0441\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u043b\u043d\u0446\u0430 \u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445   sunalpha = asin(tan(sundelta) \/ 0.434812); \/\/ \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043f\u0440\u044f\u043c\u043e\u0435 \u0432\u043e\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u043e\u043b\u043d\u0446\u0430 \u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445   float tS = _time + lambda - 180 + sunalpha * 360 \/ (2 * PI) - alpha; \/\/\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0443\u0433\u043e\u043b \u0437\u0432\u0435\u0437\u0434\u044b \u0432 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u0445   height = 360 \/ 2 \/ PI * asin(sin(phi * 2 * PI \/ 360) * sin(delta * 2 * PI \/ 360) + cos(phi * 2 * PI \/ 360) * cos(delta * 2 * PI \/ 360) * cos(tS * 2 * PI \/ 360));\/\/\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0432\u044b\u0441\u043e\u0442\u0443   az = 360 \/ 2 \/ PI * asin(sin(tS * 2 * PI \/ 360) * cos(delta * 2 * PI \/ 360) \/ cos(height * 2 * PI \/ 360)); \/\/\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0430\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u0437\u0438\u043c\u0443\u0442 (\u0441 \u044e\u0433\u0430 \u043f\u043e \u0447\u0430\u0441\u043e\u0432\u043e\u0439)   if (tS &gt; 90 || tS &lt; -90)   {     az = 180 - az;   }  \/\/ if (az &gt; 180 &amp;&amp; az &lt; 270)   \/\/  az = az - 360; }  void setup() {   Serial.begin(9600);   yaw.attach(10, 90);   pitch.attach(11, 180);   yaw.setSpeed(20);   yaw.setAccel(0.1);   pitch.setSpeed(20);   pitch.setAccel(0.1);   yaw.setAutoDetach(false);   pitch.setAutoDetach(false);   pinMode(LED_BUILTIN, OUTPUT); }  void loop() {   but.tick();   yaw.tick();   pitch.tick();   if (but.isSingle())   {     counter += 1;     if (counter == 9)       counter = 0;   }   alpha = Coordinates[counter][0];   delta = Coordinates[counter][1];   GpsGetData();   CalculateParams();   digitalWrite(LED_BUILTIN, gps.location.isValid());   if (az &gt; 90 &amp;&amp; az &lt; 180)   {     yaw.setTargetDeg(270 - az);     pitch.setTargetDeg(height);   }   if (az &lt; -90 &amp;&amp; az &gt; -180)   {     yaw.setTargetDeg(-90 - az);     pitch.setTargetDeg(height);   }   if (az &lt; 90 &amp;&amp; az &gt; -90)   {     yaw.setTargetDeg(90.0 - az);     pitch.setTargetDeg(180 - height);   } } <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443, \u043b\u0438\u0448\u044c \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0441\u044c \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u0445.<\/p>\n<h2>\u0423\u0440\u043e\u043a \u0430\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0438\u0438<\/h2>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0440\u043e \u0430\u0441\u0442\u0440\u043e\u0442\u0435\u0440\u043c\u0438\u043d\u044b \u0438 \u0435\u0449\u0435 \u043a\u043e\u0435-\u0447\u0442\u043e<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430, \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432 \u0432\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438 \u0438\u043b\u0438 \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u2013 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435, \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u0434\u0440\u0443\u0433\u0443\u044e.  <\/div>\n<\/p><\/div>\n<p>  \u2026 \u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0437\u0434\u0435\u0441\u044c \u043e\u0434\u0438\u043d \u2013 \u0444\u0443\u043d\u043a\u0446\u0438\u044f CalculateParams()<br \/>  \u0427\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u0430 \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u043d\u0430 \u0432\u0445\u043e\u0434 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0437\u0432\u0435\u0437\u0434\u044b \u0432 \u044d\u043a\u0432\u0430\u0442\u043e\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 (\u043f\u0440\u044f\u043c\u043e\u0435 \u0432\u043e\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0438 \u0441\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435), \u0432\u0440\u0435\u043c\u044f \u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044f \u0438 \u0432\u044b\u0434\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u0442\u0443 \u0438 \u0430\u0437\u0438\u043c\u0443\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0442.\u0435. \u043f\u043e \u0441\u0443\u0442\u0438 \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0437\u0432\u0435\u0437\u0434\u044b \u0438\u0437 \u044d\u043a\u0432\u0430\u0442\u043e\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0437\u0432\u0435\u0437\u0434\u044b \u043d\u0435\u043f\u043e\u0434\u0432\u0438\u0436\u043d\u044b) \u0432 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e (\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0437\u0432\u0435\u0437\u0434\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u0441\u0443\u0442\u043e\u043a).<\/p>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u044d\u0442\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u044b <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A1%D1%84%D0%B5%D1%80%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F_%D1%82%D1%80%D0%B8%D0%B3%D0%BE%D0%BD%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%B8%D1%8F\" rel=\"nofollow\">\u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u0440\u0438\u0433\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0438<\/a>, \u0430 \u0442\u0430\u043a\u0436\u0435 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A1%D1%84%D0%B5%D1%80%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F_%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%BD%D0%BE%D0%BC%D0%B8%D1%8F\" rel=\"nofollow\">\u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0430\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0438\u0438 <\/a><s>\u0432 \u0432\u0430\u043a\u0443\u0443\u043c\u0435<\/s>.<\/p>\n<p>  \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0442\u0430\u043a\u043e\u0432:<\/p>\n<ol>\n<li>\u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u044d\u043a\u043b\u0438\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0434\u043e\u043b\u0433\u043e\u0442\u0443 \u0441\u043e\u043b\u043d\u0446\u0430 <\/li>\n<li>\u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0441\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u043b\u043d\u0446\u0430<\/li>\n<li>\u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u043e\u0435 \u0432\u043e\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u043e\u043b\u043d\u0446\u0430<\/li>\n<li>\u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0443\u0433\u043e\u043b \u0437\u0432\u0435\u0437\u0434\u044b<\/li>\n<li>\u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0432\u044b\u0441\u043e\u0442\u0443 \u0438 \u0430\u0437\u0438\u043c\u0443\u0442 <\/li>\n<\/ol>\n<p>  \u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e:<\/p>\n<pre><code class=\"cpp\">void CalculateParams() {   float _time = (h + (float)m \/ 60 + (float)s \/ 3600) * 360.0 \/ 24.0;\/\/\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0432\u0440\u0435\u043c\u044f \u0432 \u0447\u0430\u0441\u0430\u0445   float sunlambda = (float)Days(d, mo, yr) * 360 \/ 365; \/\/ \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u044d\u043a\u043b\u0438\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0434\u043e\u043b\u0433\u043e\u0442\u044b \u0441\u043e\u043b\u043d\u0446\u0430 \u0432 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u0445   sundelta = asin(0.398749 * sin(sunlambda * 2 * PI \/ 360));\/\/\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0441\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435 \u0441\u043e\u043b\u043d\u0446\u0430 \u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445   sunalpha = asin(tan(sundelta) \/ 0.434812); \/\/ \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043f\u0440\u044f\u043c\u043e\u0435 \u0432\u043e\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u043e\u043b\u043d\u0446\u0430 \u0432 \u0440\u0430\u0434\u0438\u0430\u043d\u0430\u0445   float tS = _time + lambda - 180 + sunalpha * 360 \/ (2 * PI) - alpha; \/\/\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0443\u0433\u043e\u043b \u0437\u0432\u0435\u0437\u0434\u044b \u0432 \u0433\u0440\u0430\u0434\u0443\u0441\u0430\u0445   height = 360 \/ 2 \/ PI * asin(sin(phi * 2 * PI \/ 360) * sin(delta * 2 * PI \/ 360) + cos(phi * 2 * PI \/ 360) * cos(delta * 2 * PI \/ 360) * cos(tS * 2 * PI \/ 360));\/\/\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0432\u044b\u0441\u043e\u0442\u0443   az = 360 \/ 2 \/ PI * asin(sin(tS * 2 * PI \/ 360) * cos(delta * 2 * PI \/ 360) \/ cos(height * 2 * PI \/ 360)); \/\/\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0430\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u0437\u0438\u043c\u0443\u0442 (\u0441 \u044e\u0433\u0430 \u043f\u043e \u0447\u0430\u0441\u043e\u0432\u043e\u0439)   if (tS &gt; 90 || tS &lt; -90)   {     az = 180 - az;   } } <\/code><\/pre>\n<p>  <\/p>\n<h2>\u041e\u0446\u0435\u043d\u043a\u0430 \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u0438<\/h2>\n<p>  \u041e\u0446\u0435\u043d\u0438\u043c \u0432\u043a\u043b\u0430\u0434 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u043e\u0440\u0430 \u0432 \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u044c (\u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u043f\u043e \u0432\u043a\u043b\u0430\u0434\u0443 \u0432 \u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c)<\/p>\n<ol>\n<li> \u041a\u0440\u0438\u0432\u0438\u0437\u043d\u0430 \u0440\u0443\u043a \u2014 \u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0444\u0430\u043a\u0442\u043e\u0440<\/li>\n<li> \u041d\u0435\u0442\u043e\u0447\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430<\/li>\n<li> \u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0430\u0437\u0438\u043c\u0443\u0442\u0430 (\u043d\u0430\u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e \u0430\u0441\u0442\u0440\u043e\u043d\u043e\u043c\u044b \u0441\u0447\u0438\u0442\u0430\u044e\u0442 \u0430\u0437\u0438\u043c\u0443\u0442 \u0441 \u044e\u0433\u0430 \u043f\u043e \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0435)<\/li>\n<li> \u0422\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u044b \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u0443\u0433\u043e\u043b<\/li>\n<li> \u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0432 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 (\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043e\u043b\u043d\u0446\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0442\u043e\u0447\u043d\u043e: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u044d\u043a\u043b\u0438\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0434\u043e\u043b\u0433\u043e\u0442\u0430 \u0441\u043e\u043b\u043d\u0446\u0430 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435 (\u0432 \u043a\u043e\u0434\u0435 \u0443\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442); \u0434\u0435\u043d\u044c \u0432\u0435\u0441\u0435\u043d\u043d\u0435\u0433\u043e \u0440\u0430\u0432\u043d\u043e\u0434\u0435\u043d\u0441\u0442\u0432\u0438\u044f \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e\u0436\u0435 \u0432\u0440\u0435\u043c\u044f;<br \/>  \u0442\u0430\u043a\u0436\u0435, \u044f \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044e \u0443\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438) \u043d\u043e \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u044c \u0438\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0442\u0435\u043a\u0430\u0435\u0442 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f.<\/li>\n<\/ol>\n<p>  <\/p>\n<h2>\u0427\u0442\u043e \u0435\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c (todo)<\/h2>\n<p>  <\/p>\n<ol>\n<li> \u0421\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u044b \u043d\u0430 \u0448\u0430\u0433\u043e\u0432\u044b\u0435 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u0438 \u0441 \u0438\u0445 \u043c\u0438\u043a\u0440\u043e\u0448\u0430\u0433\u0430\u043c\u0438;<\/li>\n<li> \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c<\/li>\n<li> \u0415\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u0438 \u0438\u0437-\u0437\u0430 \u043a\u0440\u0438\u0432\u043e\u0433\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430 \u0438 \u0430\u0437\u0438\u043c\u0443\u0442\u0430:<br \/>  \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043f\u043e \u00ab\u0440\u0435\u0448\u0435\u043d\u0438\u044e \u0430\u0441\u0442\u0440\u043e\u0444\u043e\u0442\u043e\u00bb: \u0438\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0448\u044c \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e \u0441\u043e \u0437\u0432\u0435\u0437\u0434\u0430\u043c\u0438, \u0430 \u043e\u043d\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0446\u0435\u043d\u0442\u0440\u0430 \u043a\u0430\u0434\u0440\u0430.\n<p>  \u0427\u0442\u043e \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c: <\/p>\n<ol>\n<li>\u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u0435\u043c \u043a \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0442\u0435\u043b\u0435\u0441\u043a\u043e\u043f\u0443 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0442\u0435\u043b\u0435\u0441\u043a\u043e\u043f\u0447\u0438\u043a \u0441 \u043a\u0430\u043c\u0435\u0440\u043e\u0439<\/li>\n<li>\u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0448\u0430\u0433\u043e\u0432\u0438\u043a\u0438 \u043d\u0430 3 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0442\u043e\u0447\u043a\u0438 \u043d\u0430 \u043d\u0435\u0431\u0435, \u0434\u0435\u043b\u0430\u0435\u043c \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 <\/li>\n<li>\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u0445 \u043d\u0430 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0435\u0433\u043e API \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0442\u043e\u0447\u0435\u043a <\/li>\n<li>\u0441\u043b\u043e\u0436\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u0438\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0435\u0441\u043a\u043e\u043f\u0430<\/li>\n<li>PROFIT!!!<\/li>\n<\/ol>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435, \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/p>\n<p>  \u0421 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u0432\u0435\u0447\u0443 \u043d\u0430 \u0432\u0430\u0448\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/li>\n<\/ol>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/506532\/\"> https:\/\/habr.com\/ru\/post\/506532\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/506532\/\">\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>  \u0420\u0435\u0448\u0438\u043b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0441\u0430\u043c\u043e\u0434\u0435\u043b\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bv\/yi\/st\/bvyistbmdjpnx1eefu9ak1aedom.jpeg\"><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u041a\u0414\u041f\u0412 \u0441\u0434\u0435\u043b\u0430\u043b\u0430 \u0441\u0432\u043e\u0435 \u0434\u0435\u043b\u043e \u2014 \u0442\u043e\u0433\u0434\u0430 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442 \ud83d\ude42<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043f\u043e\u0439\u043b\u0435\u0440<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u042f \u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0432\u0441\u0435\u043c<\/div>\n<\/p><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-305293","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/305293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=305293"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/305293\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=305293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=305293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=305293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}