{"id":347,"date":"2008-10-22T02:06:25","date_gmt":"2008-10-22T00:06:25","guid":{"rendered":"http:\/\/mattiesworld.gotdns.org\/weblog\/2008\/10\/22\/wiimote-experiment\/"},"modified":"2008-10-24T01:10:42","modified_gmt":"2008-10-23T23:10:42","slug":"wiimote-experiment","status":"publish","type":"post","link":"https:\/\/mattiesworld.gotdns.org\/weblog\/2008\/10\/22\/wiimote-experiment\/","title":{"rendered":"Wiimote experiment"},"content":{"rendered":"<p>Okay, so I finally got to it. A few months ago I bought a wiimote to play a bit with the api&#8217;s floating on the net. It was until yesterday that I actually tried a driver, and since that seemed to work okay, I decided to give it a try myself. My simple goal, being an app plotting the raw inputs. However, it took me a 2 hours more than expected (1 =)) and also a lot more blood, sweat and tears. \ud83d\ude09 particularly because I made a lot of mistakes due to me being too tired \ud83d\ude09 So I will keep it short for now as I want to go to sleep.<\/p>\n<p>I choose the <a href=\"http:\/\/www.wiiuse.net\/\">wiiuse<\/a> library as it seemed adequate for the job and still active (and even cross platform!). I started from the included example and tried to wrap it into a Qt app (hence I named it example-qt ;)). The obvious choice for drawing is using QGraphicsView. However, for once ;), I took the effort to see if there are no existing Qt graph plotting libraries. And this just happens to be the case. \ud83d\ude42 Meet the excellent <a href=\"http:\/\/qwt.sourceforge.net\/\">QWT<\/a> lib. It couldn&#8217;t be more fit for the job. The site is (almost) nothing but the api docs, but that seemed sufficient. One second I thought this lib would not be qt4 ready, but it has been ported!<\/p>\n<p>Quite a few seconds and segfaults later \ud83d\ude09 I got this:<br \/>\n<a href='https:\/\/mattiesworld.gotdns.org\/weblog\/wp-content\/uploads\/2008\/10\/wii_experiment.png' title='wii experiment'><img src='https:\/\/mattiesworld.gotdns.org\/weblog\/wp-content\/uploads\/2008\/10\/wii_experiment.thumbnail.png' alt='wii experiment' \/><\/a><\/p>\n<p>Nothing fancy, but it does show the roll and pitch!! =)<\/p>\n<p>Note: the wiimote survived the experiment \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Okay, so I finally got to it. A few months ago I bought a wiimote to play a bit with the api&#8217;s floating on the net. It was until yesterday that I actually tried a driver, and since that seemed to work okay, I decided to give it a try myself. My simple goal, being &hellip; <a href=\"https:\/\/mattiesworld.gotdns.org\/weblog\/2008\/10\/22\/wiimote-experiment\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Wiimote experiment<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,24],"tags":[],"class_list":["post-347","post","type-post","status-publish","format-standard","hentry","category-1-night-stands","category-wiimote-fun"],"_links":{"self":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/comments?post=347"}],"version-history":[{"count":0,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/347\/revisions"}],"wp:attachment":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/media?parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/categories?post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/tags?post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}