{"id":76,"date":"2011-09-28T12:00:00","date_gmt":"2011-09-28T12:00:00","guid":{"rendered":"https:\/\/eric.tedjamulia.com\/blog\/missile-launching-fun\/"},"modified":"2011-09-28T12:00:00","modified_gmt":"2011-09-28T12:00:00","slug":"missile-launching-fun","status":"publish","type":"post","link":"https:\/\/eric.tedjamulia.com\/blog\/missile-launching-fun\/","title":{"rendered":"Missile launching fun"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">One of the coolest presents I got for my birthday this year was a USB missile launcher from Shantell&#8217;s parents. Naturally, I needed to write a program for it. Fiero was probably less excited about this present than I was.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The controller is C# on .NET 4, using UsbLibrary to talk to the toy over USB HID. I made a small Windows Forms application for the directional controls and status display. The shared controller handles short timed movements, stop commands, and checking when the launcher has reached its movement limits.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then I put a little HttpListener web server in front of the same controller. It serves a very simple HTML direction pad and turns its requests into launcher commands. Not a complicated web application, but a button on a web page making a real toy move is pretty entertaining.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">My next idea is to combine it with a Kinect and its depth sensor. That part is still a plan in this version; the working code here is the USB controller and web remote.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.youtube.com\/watch?v=HYF6Q17duVA\">Watch the original missile-launcher video<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Archive note: the original video is currently private on YouTube. The link is preserved here, but it cannot be played publicly until its visibility is changed.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/ericandshantell.blogspot.com\/2011\/09\/missile-launching-fun.html\">The original family-blog post<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the coolest presents I got for my birthday this year was a USB missile launcher from Shantell&#8217;s parents. Naturally, I needed to write a program for it. Fiero was probably less excited about this present than I was. The controller is C# on .NET 4, using UsbLibrary to talk to the toy over [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[69,61,71,57,70],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-games","tag-net","tag-c","tag-hardware","tag-kinect","tag-usb"],"_links":{"self":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/comments?post=76"}],"version-history":[{"count":0,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/76\/revisions"}],"wp:attachment":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/media?parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/categories?post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/tags?post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}