{"id":146,"date":"2011-08-21T14:31:28","date_gmt":"2011-08-21T14:31:28","guid":{"rendered":"http:\/\/ava.upuaut.net\/?p=146"},"modified":"2011-08-21T14:31:28","modified_gmt":"2011-08-21T14:31:28","slug":"situationally-aware-flight-computer","status":"publish","type":"post","link":"https:\/\/ava.upuaut.net\/?p=146","title":{"rendered":"Situationally aware flight computer"},"content":{"rendered":"<p>Now we have the cut downs the flight computer needs to be aware of what its current status is. Traditionally the criteria for triggering a flight termination is exceeding a set altitude or leaving a certain geographic area.<\/p>\n<p>I felt neither of these are suitable, instead I wanted to terminate the flight based on the current rate of ascent. I quickly coded up some current rate of ascent calculations so the payload knows what its current vertical rate is.<\/p>\n<p>Based on this vertical rate it makes decisions about whether its Ascending, Decending, Floating or it has a leak.<\/p>\n<p>Ascent is defined by a Rate of Ascent (RoA) &gt;1 m\/s<br \/>\nDescent is defined by a RoA &lt; -2 m\/s<br \/>\nFloat is defined by a RoA between -1 and 1 m\/s<br \/>\nLeak is defined by a RoA &lt; 0 but &gt; -2 m\/s<\/p>\n<p>As a test I intend to fly the payload without a pyro but leave this code in so I can see what the payload thinks its RoA is and what decisions it takes based on this information. I&#8217;ve introduced a flight status code as follows :<\/p>\n<p>A = Ascending &#8211; Nominal Flight<br \/>\nD = Decending &#8211; Nominal Flight<br \/>\nL = Leak Condition Detected<br \/>\nF = Float Condition Detected<br \/>\nP = Pyro fired due to decent detection (i.e balloon has burst)<br \/>\nQ = Pyro fired due to detection of a float condition.<br \/>\nR = Pyro fired due to detection of a leak condition.<br \/>\nG = Ground mode prior to launch.<br \/>\nS = Landing mode (this is set when decending and altitude drops below 500m &#8211; possibly trigger siren or somthing)<br \/>\nN = No GPS lock<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now we have the cut downs the flight computer needs to be aware of what its current status is. Traditionally the criteria for triggering a flight termination is exceeding a set altitude or leaving a certain geographic area. I felt &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/ava.upuaut.net\/?p=146\">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-146","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts\/146","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=146"}],"version-history":[{"count":1,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions"}],"predecessor-version":[{"id":147,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions\/147"}],"wp:attachment":[{"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ava.upuaut.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}