{"id":2069,"date":"2005-10-14T11:53:00","date_gmt":"2005-10-14T01:53:00","guid":{"rendered":"http:\/\/new.radio-active.net.au\/web3\/2069\/"},"modified":"2014-10-10T12:30:51","modified_gmt":"2014-10-10T01:30:51","slug":"2069","status":"publish","type":"post","link":"http:\/\/www.radio-active.net.au\/web3\/2069","title":{"rendered":""},"content":{"rendered":"<p>OK&#8230; Now the next challenge in the programming world. I have a compass rose with 8 LED&#8217;s, and I need to work out which LED to light up if a plane is in that direction. Sound simple? Well, it is mostly. Except that the device telling my poor microprocessor what to do is giving relative headings, and not bearings. So I need to find a simple way to convert from the northings and eastings to an angle. <\/p>\n<p>So I can hear you saying &#8216;Just use the TAN function&#8217;, but the issue here is that the tan function does not exist on this device. Besides in computer speak, I really want the TAN2 function which allows the northing and easting as seperate paramaters so I do not need to divide by zero. <\/p>\n<p>I think I have a work around&#8230; I will cheat&#8230; I will assume that targets other than the primary one will be only needing an indication, meaning that I can cheat and only use four of the compass points. That will reduce the CPU intensity until I can at least work out a better way to do things. <\/p>\n<p>I am still waiting on Telstra to churn my ADSL to WestNet. How hard can it be for them? Stupid question&#8230; Do not try to answer that one.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OK&#8230; Now the next challenge in the programming world. I have a compass rose with 8 LED&#8217;s, and I need to work out which LED to light up if a plane is in that direction. Sound simple? Well, it is &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"http:\/\/www.radio-active.net.au\/web3\/2069\">  Read More &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s5cfmK-2069","_links":{"self":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/posts\/2069"}],"collection":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/comments?post=2069"}],"version-history":[{"count":0,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/posts\/2069\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/media?parent=2069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/categories?post=2069"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/tags?post=2069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}