/*! * vue-resource v1.4.0 * https://github.com/pagekit/vue-resource * Released under the MIT License. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueResource=e()}(this,function(){"use strict";var t=2;function e(e){this.state=t,this.value=void 0,this.deferred=[];var n=this;try{e(function(t){n.resolve(t)},function(t){n.reject(t)})}catch(t){n.reject(t)}}e.reject=function(t){return new e(function(e,n){n(t)})},e.resolve=function(t){return new e(function(e,n){e(t)})},e.all=function(t){return new e(function(n,o){var r=0,i=[];function s(e){return function(o){i[e]=o,(r+=1)===t.length&&n(i)}}0===t.length&&n(i);for(var u=0;u=200&&a<300,this.status=a||0,this.statusText=c||"",this.headers=new q(u),this.body=t,d(t)?this.bodyText=t:(i=t,"undefined"!=typeof Blob&&i instanceof Blob&&(this.bodyBlob=t,(0===(r=t).type.indexOf("text")||-1!==r.type.indexOf("json"))&&(this.bodyText=(n=t,new o(function(t){var e=new FileReader;e.readAsText(n),e.onload=function(){t(e.result)}})))))};L.prototype.blob=function(){return v(this.bodyBlob)},L.prototype.text=function(){return v(this.bodyText)},L.prototype.json=function(){return v(this.text(),function(t){return JSON.parse(t)})},Object.defineProperty(L.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var B=function(t){var e;this.body=null,this.params={},w(this,t,{method:(e=t.method||"GET",e?e.toUpperCase():"")}),this.headers instanceof q||(this.headers=new q(this.headers))};B.prototype.getUrl=function(){return $(this)},B.prototype.getBody=function(){return this.body},B.prototype.respondWith=function(t,e){return new L(t,w(e||{},{url:this.getUrl()}))};var M={"Content-Type":"application/json;charset=utf-8"};function N(t){var e=this||{},n=function(t){var e=[I],n=[];function r(r){for(;e.length;){var i=e.pop();if(l(i)){var s=void 0,u=void 0;if(m(s=i.call(t,r,function(t){return u=t})||u))return new o(function(e,o){n.forEach(function(e){s=v(s,function(n){return e.call(t,n)||n},o)}),v(s,e,o)},t);l(s)&&n.unshift(s)}else c="Invalid interceptor of type "+typeof i+", must be a function","undefined"!=typeof console&&a&&console.warn("[VueResource warn]: "+c)}var c}return m(t)||(t=null),r.use=function(t){e.push(t)},r}(e.$vm);return function(t){u.call(arguments,1).forEach(function(e){for(var n in e)void 0===t[n]&&(t[n]=e[n])})}(t||{},e.$options,N.options),N.interceptors.forEach(function(t){d(t)&&(t=N.interceptor[t]),l(t)&&n.use(t)}),n(new B(t)).then(function(t){return t.ok?t:o.reject(t)},function(t){var e;return t instanceof Error&&(e=t,"undefined"!=typeof console&&console.error(e)),o.reject(t)})}function D(t,e,n,o){var r=this||{},i={};return g(n=w({},D.actions,n),function(n,s){n=T({url:t,params:w({},e)},o,n),i[s]=function(){return(r.$http||N)(function(t,e){var n,o=w({},t),r={};switch(e.length){case 2:r=e[0],n=e[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(o.method)?n=e[0]:r=e[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+e.length+" arguments"}return o.body=n,o.params=w({},o.params,r),o}(n,arguments))}}),i}function J(t){var e,n,r;J.installed||(n=(e=t).config,r=e.nextTick,i=r,a=n.debug||!n.silent,t.url=$,t.http=N,t.resource=D,t.Promise=o,Object.defineProperties(t.prototype,{$url:{get:function(){return b(t.url,this,this.$options.url)}},$http:{get:function(){return b(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}},$promise:{get:function(){var e=this;return function(n){return new t.Promise(n,e)}}}}))}return N.options={},N.headers={put:M,post:M,patch:M,delete:M,common:{Accept:"application/json, text/plain, */*"},custom:{}},N.interceptor={before:function(t){l(t.before)&&t.before.call(this,t)},method:function(t){t.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(t.method)&&(t.headers.set("X-HTTP-Method-Override",t.method),t.method="POST")},jsonp:function(t){"JSONP"==t.method&&(t.client=A)},json:function(t){var e=t.headers.get("Content-Type")||"";return m(t.body)&&0===e.indexOf("application/json")&&(t.body=JSON.stringify(t.body)),function(t){return t.bodyText?v(t.text(),function(e){var n,o;if(0===(t.headers.get("Content-Type")||"").indexOf("application/json")||(o=(n=e).match(/^\s*(\[|\{)/))&&{"[":/]\s*$/,"{":/}\s*$/}[o[1]].test(n))try{t.body=JSON.parse(e)}catch(e){t.body=null}else t.body=e;return t}):t}},form:function(t){var e;e=t.body,"undefined"!=typeof FormData&&e instanceof FormData?t.headers.delete("Content-Type"):m(t.body)&&t.emulateJSON&&(t.body=$.params(t.body),t.headers.set("Content-Type","application/x-www-form-urlencoded"))},header:function(t){g(w({},N.headers.common,t.crossOrigin?{}:N.headers.custom,N.headers[p(t.method)]),function(e,n){t.headers.has(n)||t.headers.set(n,e)})},cors:function(t){if(c){var e=$.parse(location.href),n=$.parse(t.getUrl());n.protocol===e.protocol&&n.host===e.host||(t.crossOrigin=!0,t.emulateHTTP=!1,R||(t.client=U))}}},N.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach(function(t){N[t]=function(e,n){return this(w(n||{},{url:e,method:t}))}}),["post","put","patch"].forEach(function(t){N[t]=function(e,n,o){return this(w(o||{},{url:e,method:t,body:n}))}}),D.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&window.Vue.use(J),J}); /*Click Away*/ !function(e,t){"use strict";function n(e,t,n){i(e);var u=n.context,a=t.value;if("function"==typeof a){var c=!1;setTimeout(function(){c=!0},0),e[o]=function(t){var n=t.path||(t.composedPath?t.composedPath():void 0);if(c&&(n?n.indexOf(e)<0:!e.contains(t.target)))return a.call(u,t)},document.documentElement.addEventListener("click",e[o],!1)}}function i(e){document.documentElement.removeEventListener("click",e[o],!1),delete e[o]}t="default"in t?t.default:t;/^2\./.test(t.version)||t.util.warn("VueClickaway 2.2.2 only supports Vue 2.x, and does not support Vue "+t.version);var o="_vue_clickaway_handler",u={bind:n,update:function(e,t){t.value!==t.oldValue&&n(e,t)},unbind:i},a={directives:{onClickaway:u}};e.version="2.2.2",e.directive=u,e.mixin=a}(this.VueClickaway={},Vue); DISCO de GIMBAL | MadaMada

DISCO de GIMBAL

DISCO用のDIYブラシレスジンバルの中身のセッティングがほぼ完了。
ボードのマウントや配線なんかのハードはまだ仮置き。

Disco_bgc

YUN-1がそうだったように、手持ちでグリグリやってセッティングが見えれば8,9割終わった感じで、あとは飛ばしながらの微調整。とは言いつつ、まだ特性を掴みきれてないので調整代は多そうだけども。

防振面ではニトリルゴム系の板材を挟んだだけの締結部が未知数ではあるけど、GoPro単体では一応防振できてたので期待はしつつ。
実は動かすまで、RC TIMERボードのセッティングには紆余曲折かなり手間取った。
48GUIのFirmware-Uploadをポチッとしたのがマズかったのか、GUIにも繋がらず、ファームの上書きもできず、ブートローダー焼くのもムリポなド窮地に陥った…

 

RCG読み漁ってできることは全てやったけれど、結局、うちのWin7x2台では認識はするものの、Arduinoの書き込みもGUIへのコントローラーボードのマウントもできず。
その辺のTips(紆余曲折)は省くけど、”TC:Reading Values…”でスタックして困ったら聞いてみてください。適当でよければお答えするかも。

最終的に、Mac環境でファームの上書きが上手くいって、GUIはWish使ってOSXで動かしてる。何度も失敗してたのが、なぜ上手くいったのかは良くわかってないけど(いろいろ弄りすぎててハッキリしないw)、結果オーライ。
 

iMacだから外でセッティングできないってのはかなり厄介ではあるけど、贅沢は敵だ(笑)

 

やっと使えるようになった48GUI、AlexMosと似たような感じの設定項目。
欲しいと思う機能も似たようなところで、たとえばセンサーの向きを設定させろよ、とか(AlexMosは次回アプデで搭載)。RC入力のテストができるスライダーが欲しいな、とか。

48gui_osx_2
AlexMosはマウスドラッグでの調整が面倒だけど、コチラは普通にクリックでも、数字入力でもOK。
“Save”でボードに仮保存、でUSBに繋いだままで動作の確認をしつつ、最終的なボードへの書き込みは”Save to flash”をクリック。

 
そんなこんなで、無事に動いたDIY GIMBAL for DISCO、
『OpenSource vs. AlexMos』的な比較ができるわけじゃないけど、両方触ってみた感想。

手持ちグリグリファーストインプレッションでは、DIYの方がモーターのトルクがあるからなのかしっとり動いてる雰囲気はありつつ。コントローラーのスタビライズ的性能に差は無さげな雰囲気。

というか、差が判る程触ってない。ま、Youtubeで動画見てもどっちか判らないから、似たようなもんなんでしょう。
あ、音は違う!電源入れてるの忘れるぐらいにマジで無音。AlexMos惨敗。

Disco_bgc2
『どちらが良いコントローラーなのか?』世間では意見は割れてるみたいだけど、”横(ロール?)への動きに対していかに水平軸がズレないかどうか”が大きなポイントみたい。
ZENMUSE HEROは中国テストユーザーが動画上げてるけど、上記の点では評価良くないっぽい。
 
ま、どのコントローラーもまだ始まったばかりなので、どんどん良くなっていくでしょ。
で、話をもどしてDISCO de GIMBAL
 
お約束のハンドヘルドでグリングリン。

Youtubeに溢れてるグリングリン動画だけど、やっぱり自分のが動くと嬉しいね。
とくに今回はセッティングでかなり足踏みした分、ひとしお。

Disco_bgc4

なるべく後ろにバッテリーを積めばウマく機体のバランスも取れそう。

 
それにしても、ずっとYUN-1+F450ばかりで、DISCOは初フライト以降一度も飛ばしてないっていうね(笑)
 

7 Comments

  • hide

    2013-05-09 at 10:50 PM

    はじめまして、hideと申します。
    あんきもさんがコメを入れてるのを見て
    居ても立っても居られなくなってコメ致しました(笑
    必要部分以外は徹底的に取り除いた様なジンバル、
    感心致しました。是非真似させて頂きます。
    カーボン部を繋げているLアングルは、どの様な部材を使われています?
    私、お遊びでこんなの作ってます。
    http://blogs.yahoo.co.jp/hidenori02/35864988.html
    お一つ使われます?

    返信
  • hightimes247

    2013-05-09 at 11:51 PM

    >hideさん
    はじめまして、よろしくお願いします。ですが…以前あんきもさんにブログをご紹介いただいたおり、拝見させて頂いております(笑)
    カーボンアングル!!!これ喉から手が出るほど欲しかったヤツです!!探したのですが、お手軽DIYには手がでない位高いんですよね。
    ぜひぜひ、カーボン一体でシンプルなブラシレスジンバルを作って下さい。
     
    ちなみにボクのアングルは、ホムセンで200円程度のアルミアングルをカットの後、ミッチャクロンで下地→艶消しブラック塗装と無駄に手間だけかけてみました(笑)
    hideさん製カーボンアングル、非常に興味あります!
    本件、hideさんのブログの方にコメントさせて頂きました。

    返信
  • shinji_y

    2013-05-10 at 12:40 AM

    こんばんは。
    RCTIMERのブツ、明日いよいよ到着予定です。
    「お約束のハンドヘルドでグリングリン。」
    凄いですね。組み立てるのが楽しみです。
    恥ずかしながら、更新をやめていたいblogを再開しました。
    大した事は書けないと思いますがお時間ある時にでもお便り下さい。

    返信
  • hightimes247

    2013-05-10 at 12:51 AM

    >shinji_yさん
    グリングリンと体感しちゃってくださいっ!
    部品の欠品とかないと良いですね〜(笑)
    blog拝見させていただきますっ

    返信
  • shinji_y

    2013-05-10 at 10:47 PM

    >部品の欠品とかないと良いですね〜(笑)
    どうか欠品ありませんように!というかまだ届いていません。
    お尋ねしたいのですが、TBS-DISCOVERYの重量ご存知でしょうか?

    返信
  • hightimes247

    2013-05-11 at 1:47 AM

    >shinji_yさん
    Prop./バッテリー抜き(GoPro等含む)で1000gちょっとだった気がします。
    今は半分バラされてる状態なので正確には測れないっす。

    返信
  • shinji_y

    2013-05-11 at 9:04 AM

    ありがとうございます。
    DISCOを買っちゃおうか考えているところで、大変助かりました。
    手持ちのモーター980KVとアンプの推力を計算して大丈夫そうならポチってみます。

    返信

コメントを残す