SlideShare a Scribd company logo
1 of 24
プロポを使ってDonkey Carを操作してみよう!
PixHawkを使った自動運転
プロポを使ってDonkeyCarを操作してみよう!
+
やろうと思ったきっかけ
1.おじさんなのでジョイコンになれていない
(良い教師データが作れない)
2.仕事柄プロポを使う機会が多い
3.最近JumperT16を買った。
JumperT16
 Jumperという中華メーカーのすごくコスパの高いプロポ。
 4.3インチのフルカラー液晶が付き。
 当然ですが日本の法律に完全合致する技適認証済。
 同じような性能の日本製のプロポはフタバ電子製の『16SZ』
 値段は¥89,000( T/Rセット(R7008SB付)ぐらい。
 マルチプロトコルに対応している。(Frsky, S.bus , Hubsan etc.)
 ファームウェアがOpenTX
OpenTX
 OpenTXはドローンやローバーなどを操縦するために使用す
るプロポを動作させるための、オープンソースファームウェア
 Futaba 等のメーカー製送信機に搭載されたファームウェアに
較べると、非常に高性能でかつ自由度が高いという特徴。
opentx companion
USBでプロポをパソコンに接続でき設定や設定ファイルのバックアップができる。
OpenTX
OpenTX Companion
JumperT16 とDonkey Carの受信機をバインド
+
JumperT16 とDonkey Carの受信機をバインド
MDLボタンを押す。
MODEL SETUP画面に遷移
JumperT16 とDonkeyCarの受信機をバインド
JumperT16 とDonkeyCarの受信機をバインド
Bindを選択
このボタンをクリックするとBindモードになる
JumperT16 とDonkey Carの受信機をバインド
Linkボタンを押しなが受信機の電源を入れる。
バインドが完了するとLEDが点滅から点灯に変わる
JumperT16 とDonkey Carの受信機をバインド
F710エミュレータ作成
HIDに対応しているArduino Microを使用
このあたりはAkiraさんのこちらのページを参考にさせてもらいました。m(_ _ )m
https://note.mu/gc_akira/n/nbbdc9137699a
F710エミュレータ作成
電源(5V)
CH2-A0
CH1-A1
F710エミュレータ作成
電源ケーブルはこんな感じ
これGNDです。
F710エミュレータ作成
F710エミュレータ作成
F710エミュレータ作成
F710エミュレータ作成
左右のスティックを入れ替える
左がステアリング、右がスロットル 左がスロットル、右がステアリング
ステアリング ステアリング
スロットル スロットル
左右のスティックを入れ替える
myconfig.pyに以下を指定しないとmanage.pyが落ちてしまう。
CONTROLLER_TYPE='F710‘
manage.pyの1162行目
これで左ステック上下でスロットル
self.axis_trigger_map = {
'right_stick_vert' : self.set_steering,
'left_stick_horz' : self.set_throttle,
'dpad_leftright' : self.on_axis_dpad_LR,
'dpad_up_down' : self.on_axis_dpad_UD,
}
松浦さんがQiitaで公開して下さった修正方法
self.axis_trigger_map = {
'right_stick_horz' : self.set_steering,
'left_stick_vert' : self.set_throttle, }
 myconfig.pyの修正
 manage.py.pyの修正
左右のスティックを入れ替える
ただ、右スロットル左がステアリングでOKだが、右でconstant_throttleコマンドが実行されてしまう。
とりあえず対処療法として1147行目をコメントアウト。
self.button_down_trigger_map = {
'start': self.toggle_mode,
'B': self.toggle_manual_recording,
'Y': self.erase_last_N_records,
'A': self.emergency_stop,
# 'back': self.toggle_constant_throttle,
"R1" : self.chaos_monkey_on_right,
"L1" : self.chaos_monkey_on_left,
} (
スロットルのエクスポネンシャル調整
あくまでも私感ですが、うまく自動走行させるにはスムーズなスロットルコントロールで
教師データを作成する必要があると感じたのでスロットルがマイルドに反応するように調
整しました。
■調整前の動画です。
https://youtu.be/8tO1p7xxsTw
■こっちが調整後
https://youtu.be/Ti-si1mEa1c
スロットルのエクスポネンシャル調整
ご清聴ありがとうございました。

More Related Content

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Featured (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

JumperT16でDonkeyCarを操作する。