Upgrade to Pro — share decks privately, control downloads, hide ads and more …

create_your_own_rc_airplane_controller.pdf

side_tana
August 18, 2018
78

 create_your_own_rc_airplane_controller.pdf

side_tana

August 18, 2018
Tweet

Transcript

  1. Create your own
 RC Airplane controller Kyoto.* #4 • ࿑ಇͷ৔:

    גࣜձࣾϛΫγΟ • ݈߁ྖҬͷ৽نࣄۀΛ΍͍ͬͯ·͢ • Go + Google App Engine • ͦͷଞ GCP ͷ଍ճΓͱ͔͍Ζ͍Ζ • ϋʔυͬΆ͍΍ͭ͸΍ͬͨ͜ͱͳ͍Ͱ͢ • झຯ: Πϯλʔωοτ 4
  2. Create your own
 RC Airplane controller Kyoto.* #4 ࠓ೔࿩͢಺༰ w

    ίϯτϩʔϥʢιϑτ΢ΣΞʣͰɺίϯτϩʔϥ ʢϋʔυ΢ΣΞʣͰ͸ͳ͍Ͱ͢ "7
  3. Create your own
 RC Airplane controller Kyoto.* #4 .PTLJUPͷ༡ͼํ 

    ඈߦػͷిݯΛೖΕΔ  ΞϓϦΛ্ཱͪ͛Δ  #-&Ͱ઀ଓ͞ΕΔ  &OKPZ "10
  4. Create your own
 RC Airplane controller Kyoto.* #4 .PTLJUPͷ༡ͼํ w

    ిݯΛೖΕΔ w ΞϓϦΛ্ཱͪ͛Δ w &OKPZ "11 ؆୯ʂ
  5. "14

  6. Create your own
 RC Airplane controller Kyoto.* #4 #-&ύέοτεχϑΝ w

    ຊ෺ͷ#-&ϓϩτίϧΞφϥΠβ͸਺ඦສ͢Δ w #-&νοϓɾϞδϡʔϧϕϯμͷεχοϑΝͳΒखࠒ ͳ஋ஈͰೖखͰ͖Δ w ͔ٕ͠͠దূ໌͕ͳ͍΋ͷ͕ଟ͍ w "EBGSVJUࣾͷʮ#MVFGSVJU-&4OJ⒎FSʯ͸ٕదऔಘ ࡁΈͳͷͰ͜ΕΛ࢖͍·͢ w ࢀߟ%4"4։ൃऀͷ෦԰ٕదϚʔΫ͖ͭ#-&ύέοτεχϑΝΛೖख͢Δ
 IUUQETBTCMPHLMBCPSHBSDIJWFTIUNM "22
  7. Create your own
 RC Airplane controller Kyoto.* #4 ͦ΋ͦ΋
 ύέοτ


    εχϑΝͬͯ
 ٕదඞཁͳ ͷ "24 Α͘Θ͔Μͳ͍͚Ͳ
 ͋ͬͨ΄͏͕Αͦ͞͏
  8. Create your own
 RC Airplane controller Kyoto.* #4 #-&ͷΞυόλΠζ "32

    Connection Scan Direct ADV_IND OK OK ແ޲ ADV_DIRECT_IND OK NG ༗޲ ADV_NONCONN_IND NG NG ແ޲ ADV_SCAN_IND NG OK ແ޲
  9. Create your own
 RC Airplane controller Kyoto.* #4 #-&ͷΞυόλΠζ "33

    Connection Scan Direct ADV_IND OK OK ແ޲ ADV_DIRECT_IND OK NG ༗޲ ADV_NONCONN_IND NG NG ແ޲ ADV_SCAN_IND NG OK ແ޲
  10. Create your own
 RC Airplane controller Kyoto.* #4 ("55 w

    σʔλΛߏ଄Խ͢Δํ๏ͱΞϓϦέʔγϣϯؒͰͷ ΍ΓऔΓͷํ๏ͷఆٛ w "55 "UUSJCVUF1SPUPDPM Ͱ࣮ݱ͞Ε͍ͯΔ w αʔόͱΫϥΠΞϯτ͕"UUSJCVUFʢଐੑʣΛ ͓࣋ͬͯΓɺ૒ํ͕ଐੑΛ΍ΓऔΓ͢ΔϞσϧ w ଐੑ͸)BOEMFɺ5ZQFɺ7BMVFɺ1FSNJTTJPO ͷͭͷ஋Ͱߏ੒͞ΕΔ "39
  11. Create your own
 RC Airplane controller Kyoto.* #4 ("55 w

    σʔλΛߏ଄Խ͢Δํ๏ w ΞϓϦέʔγϣϯؒͰͷ΍ΓऔΓͷํ๏ w "55 "UUSJCVUF1SPUPDPM Ͱ࣮ݱ͞Ε͍ͯΔ w αʔόͱΫϥΠΞϯτ͕"UUSJCVUFʢଐੑʣΛ ͓࣋ͬͯΓɺ૒ํ͕ଐੑΛ΍ΓऔΓ͢ΔϞσϧ "40 https://www.bluetooth.com/ja-jp/specifications/gatt/generic- attributes-overview ("55ϓϩϑΝΠϧͷ֊૚
  12. Create your own
 RC Airplane controller Kyoto.* #4 લఏ w

    ("55Ͱ͸66*%GΛ#BUUFSZ4FSWJDFͱ ͯ͠ఆ͍ٛͯ͠Δ "42
  13. Create your own
 RC Airplane controller Kyoto.* #4 ("55 w

    σʔλΛߏ଄Խ͢Δํ๏ w ΞϓϦέʔγϣϯؒͰͷ΍ΓऔΓͷํ๏ w "55 "UUSJCVUF1SPUPDPM Ͱ࣮ݱ͞Ε͍ͯΔ w αʔόͱΫϥΠΞϯτ͕"UUSJCVUFʢଐੑʣΛ ͓࣋ͬͯΓɺ૒ํ͕ଐੑΛ΍ΓऔΓ͢ΔϞσϧ "45 https://www.bluetooth.com/ja-jp/specifications/gatt/generic- attributes-overview 0x0028 (GATT: 180f - Battery Service)
  14. Create your own
 RC Airplane controller Kyoto.* #4 ("55 w

    σʔλΛߏ଄Խ͢Δํ๏ w ΞϓϦέʔγϣϯؒͰͷ΍ΓऔΓͷํ๏ w "55 "UUSJCVUF1SPUPDPM Ͱ࣮ݱ͞Ε͍ͯΔ w αʔόͱΫϥΠΞϯτ͕"UUSJCVUFʢଐੑʣΛ ͓࣋ͬͯΓɺ૒ํ͕ଐੑΛ΍ΓऔΓ͢ΔϞσϧ "49 https://www.bluetooth.com/ja-jp/specifications/gatt/generic- attributes-overview 0x0028 (GATT: 180f - Battery Service) 0x0029 0x12 2a19 - Battery Level 0x002a
  15. Create your own
 RC Airplane controller Kyoto.* #4 "56 Ͳͷ)BOEMFʹ஋Λॻ͚͹

    ੍ޚͰ͖Δͷ͔Θ͔ΒΜ# όοςϦʔͷ࣌ͱ͸ٯ ޲͖ʹؾ߹Ͱ΍Γ·͢
  16. Create your own
 RC Airplane controller Kyoto.* #4 ("55 w

    σʔλΛߏ଄Խ͢Δํ๏ w ΞϓϦέʔγϣϯؒͰͷ΍ΓऔΓͷํ๏ w "55 "UUSJCVUF1SPUPDPM Ͱ࣮ݱ͞Ε͍ͯΔ w αʔόͱΫϥΠΞϯτ͕"UUSJCVUFʢଐੑʣΛ ͓࣋ͬͯΓɺ૒ํ͕ଐੑΛ΍ΓऔΓ͢ΔϞσϧ "59 https://www.bluetooth.com/ja-jp/specifications/gatt/generic- attributes-overview 0x???? (GATT: 75B64E51...) 75B64E51-0010-4ED1-... 0x0010 0x????
  17. Create your own
 RC Airplane controller Kyoto.* #4 ("55 w

    σʔλΛߏ଄Խ͢Δํ๏ w ΞϓϦέʔγϣϯؒͰͷ΍ΓऔΓͷํ๏ w "55 "UUSJCVUF1SPUPDPM Ͱ࣮ݱ͞Ε͍ͯΔ w αʔόͱΫϥΠΞϯτ͕"UUSJCVUFʢଐੑʣΛ ͓࣋ͬͯΓɺ૒ํ͕ଐੑΛ΍ΓऔΓ͢ΔϞσϧ "60 https://www.bluetooth.com/ja-jp/specifications/gatt/generic- attributes-overview 0x???? (GATT: 75B64E51...) 75B64E51-0010-4ED1-... 0x0010 0x???? GATTతʹ͸͜ΕΛཔΓʹ
 ΍͍͚ͬͯ͹OK
  18. Create your own
 RC Airplane controller Kyoto.* #4 "62 .BD#PPL

    #MVFGSVJU-&4OJ⒎FS
 O3' 8JOEPXT
  19. Create your own
 RC Airplane controller Kyoto.* #4 "66 +BWB4DSJQU

    OPEFKT
  FYQSFTT ίϯτϩʔϥ
 ࣮૷ XFCTDPLFU αʔό࣮૷ #-&
  20. Create your own
 RC Airplane controller Kyoto.* #4 6*͸͜Μͳײ͡ "67

    εϩοτϧ ɹ੺৭: ݱࡏͷεϩοτϧ
 ɹփ৭: 100% ࠨʹ৳ͼͯΔ΍ͭ: ਫฏඌཌྷ ɹதԝ͔ΒϚ΢εΧʔιϧ͕ ɹࠨӈʹ཭ΕΔͱಈ࡞͢Δ தԝ: mousedownͨ࣌͠ͷ ɹɹɹϙδγϣϯ
  21. Create your own
 RC Airplane controller Kyoto.* #4 ্ڃͱॳڃͷҧ͍ w

    ࣮͸७ਖ਼ΞϓϦͩͱํ޲଩Λૢ࡞ͨ͠λΠϛϯά ͰɺҰॠϞʔλͷग़ྗΛԼ͛ͯટճ͠΍͍ͯ͘͢͠ Δ w ͦͷԼ͛෯্͕ڃͩͱେ͖͘ɺॳڃͩͱখ͍͞ "70
  22. Create your own
 RC Airplane controller Kyoto.* #4 ·ͱΊ w

    ύέοτݟΕΔͱ͍Ζ͍ΖͰָ͖͍ͯ͠Ͷ "72
  23. Create your own
 RC Airplane controller Kyoto.* #4 #-&4OJ⒎FS w

    .BDͩͱಈ͔ͳ͍ w υΩϡϝϯτʹ͸SEQBSUZͷΞϓϦέʔγϣϯ Λ࢖͏͜ͱͰ࢖͑Δͱ͋Δ͕͏·͍͔͘ͳ͔ͬͨ w ͳΜ͔खॱݟམͱͯ͠Δͷ͔΋ "74
  24. Create your own
 RC Airplane controller Kyoto.* #4 #-&4OJ⒎FS w

    ձࣾͰࢼ͢ͱ਺ඵͰΞϓϦέʔγϣϯ͕Ϋϥογϡ ͢Δ w Ͳ͏΍Β#-&σόΠε͕େྔʹి೾ඈ͹ͯ͠Δ؀ ڥͩͱ࢖͍෺ʹͳΒͳ͍ͬΆ͍Ͱ͢ w ՈͰ͸ී௨ʹࢼͤͨ "75