{"id":303,"date":"2012-06-05T21:28:15","date_gmt":"2012-06-05T21:28:15","guid":{"rendered":"http:\/\/ava.upuaut.net\/?p=303"},"modified":"2012-06-05T21:28:15","modified_gmt":"2012-06-05T21:28:15","slug":"shiny-new-boards-need-shiny-new-code","status":"publish","type":"post","link":"https:\/\/ava.upuaut.net\/?p=303","title":{"rendered":"Shiny new boards need shiny new code.."},"content":{"rendered":"<p>My coding is crap. The code at the core of the AVA1 &amp; AVA2 boards was old, nasty and had some buffer overflows in it I could never track down. I&#8217;m sure the issues related to the way I was reading the NMEA data and parsing the\u00a0GPGGA, occasionally and unreproducibly\u00a0it would just give overflows usually when it was getting locks.<\/p>\n<p>I started the code again and with the assitance of <a href=\"http:\/\/ukhas.org.uk\/projects:eurus\" target=\"_blank\">Jcoxon&#8217;s Project EURUS code<\/a> I changed the way it gets the data from the GPS by switching to polling the GPS for its location. Its much more efficient, also I&#8217;ve put in checks and timesouts that were missing on the original code and moved everything to procedures.<\/p>\n<p>All the complex flight status stuff has been removed and I&#8217;ve redone the temperature parts. Finally on review I&#8217;ve amended the default RTTY from ASCII-8 1 stop bit to ASCII-7 2 stop bits. Additionally I&#8217;m sending 10 nulls before commencing transmission to aid the trackers and AFC in dl-fldigi. Hopefully these changes will make a more decodable signal.<\/p>\n<p>I&#8217;m really pleased how its worked out, in fact now I&#8217;ve procedurised everything it was a very trivial 10 minute job to amend the code to work with the RFM22B making both a RTTY and\u00a0<a href=\"http:\/\/en.wikipedia.org\/wiki\/Hellschreiber\" target=\"_blank\">Hellschreiber<\/a>\u00a0beacon.<\/p>\n<p>The code for all variants is now about 10kB as opposed to the 18kB it was previously.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My coding is crap. The code at the core of the AVA1 &amp; AVA2 boards was old, nasty and had some buffer overflows in it I could never track down. I&#8217;m sure the issues related to the way I was &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/ava.upuaut.net\/?p=303\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-303","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts\/303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=303"}],"version-history":[{"count":1,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts\/303\/revisions"}],"predecessor-version":[{"id":304,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts\/303\/revisions\/304"}],"wp:attachment":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}