{"id":1050,"date":"2010-02-25T21:26:01","date_gmt":"2010-02-26T05:26:01","guid":{"rendered":"https:\/\/mathpirate.net\/log\/?p=1050"},"modified":"2010-02-25T21:26:01","modified_gmt":"2010-02-26T05:26:01","slug":"achievement-unlocked-wild-goose-chase","status":"publish","type":"post","link":"https:\/\/mathpirate.net\/log\/2010\/02\/25\/achievement-unlocked-wild-goose-chase\/","title":{"rendered":"Achievement Unlocked: Wild Goose Chase"},"content":{"rendered":"<p><a href=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/02\/WildGooseChase1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1051\" title=\"WildGooseChase1\" src=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/02\/WildGooseChase1-300x64.jpg\" alt=\"\" width=\"300\" height=\"64\" srcset=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/02\/WildGooseChase1-300x64.jpg 300w, https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/02\/WildGooseChase1.jpg 450w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>So, I found out why it wasn&#8217;t waiting&#8230;<\/p>\n<p>It was waiting and I&#8217;m just a moron.<\/p>\n<p>I had my program set up to send a Bluetooth message to the NXT to retrieve the contents of Mailbox 10.\u00c2\u00a0 One the NXT, I was writing true to Mailbox 10 when I started an action and false when the action completed, so that Mailbox 10 could be used as a &#8220;Busy&#8221; signal.\u00c2\u00a0 My program would\u00c2\u00a0poll until Mailbox 10 reported false, then continue.<\/p>\n<p>Thing is, I was sending the &#8220;Clear Mailbox&#8221; flag to the NXT.\u00c2\u00a0 So the NXT gave me the contents of Mailbox 10, then cleared Mailbox 10.\u00c2\u00a0 The first read returned true, because the motor was busy.\u00c2\u00a0 The second read returned false, not because the action had completed, but beacuse the &#8220;Clear Mailbox&#8221; flag caused Mailbox 10 to be filled with a bunch of zeroes.<\/p>\n<p><a href=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/02\/WildGooseChase2.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1052\" title=\"WildGooseChase2\" src=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/02\/WildGooseChase2-300x55.jpg\" alt=\"\" width=\"300\" height=\"55\" srcset=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/02\/WildGooseChase2-300x55.jpg 300w, https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/02\/WildGooseChase2.jpg 477w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, I found out why it wasn&#8217;t waiting&#8230; It was waiting and I&#8217;m just a moron. I had my program set up to send a Bluetooth message to the NXT to retrieve the contents of Mailbox 10.\u00c2\u00a0 One the NXT, I was writing true to Mailbox 10 when I started an action and false when [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[125,7],"tags":[126,109,15,31,237],"_links":{"self":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts\/1050"}],"collection":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/comments?post=1050"}],"version-history":[{"count":1,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts\/1050\/revisions"}],"predecessor-version":[{"id":1053,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts\/1050\/revisions\/1053"}],"wp:attachment":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/media?parent=1050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/categories?post=1050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/tags?post=1050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}