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

はじめてのRuby 第6章 / Ruby Practice 06

muttan
October 28, 2016

はじめてのRuby 第6章 / Ruby Practice 06

muttan

October 28, 2016
Tweet

More Decks by muttan

Other Decks in Programming

Transcript

  1. GPSจ w ͱ͍͏ͷ͸ 3BOHFΦϒδΣΫτΛੜ੒͢Δ ͨΊͷߏจ w TUBSUFOEͱॻ͍ͨ࣌ <TUBSU FOE>ͷൣғԋࢉࢠ Λੜ੒͢Δ͕

    TUBSUFOEͱ͢Δͱ<TUBSU FOE ͱͳΔ w GPSจͰ܁Γฦ͍ͨ͠ൣғΛࢦఆ͢Δ࣌͸ Λ࢖ͬ ͯ3BOHFΦϒδΣΫτΛੜ੒͠Α͏
  2. GPSจ w ͱ͍͏ͷ͸ 3BOHFΦϒδΣΫτΛੜ੒͢Δ ͨΊͷߏจ w TUBSUFOEͱॻ͍ͨ࣌ <TUBSU FOE>ͷൣғԋࢉࢠ Λੜ੒͢Δ͕

    TUBSUFOEͱ͢Δͱ<TUBSU FOE ͱͳΔ w GPSจͰ܁Γฦ͍ͨ͠ൣғΛࢦఆ͢Δ࣌͸ Λ࢖ͬ ͯ3BOHFΦϒδΣΫτΛੜ੒͠Α͏
  3. GPSจ w UJNFTจͱGPSจͷൺֱ
 
 
 
 
 w GPSจͷํ͕εοΩϦ w

    3VCZͰ΋BB CΛB Cͱॻ͘͜ͱ͕Ͱ͖Δ UJNFTϝιου GPSจ
  4. VOUJMจ w ઌ΄Ͳͷιʔεͱಉ͡ϓϩάϥϜΛXIJMFจͰه ड़͢Δͱʜ
 
 
 
 
 
 w

    XIJMFͷ৚݅ͱ৚͕݅൓ରʹͳΔ఺ʹ஫ҙ 1XIJMF@OPUSC࣮ߦ
  5. FBDIϝιου w GPSจͷJOͷޙʹࢦఆͨ͠ΦϒδΣΫτͳΒ͹ FBDIΛݺͼग़͢͜ͱ͕Ͱ͖ΔͷͰ 
 
 
 
 
 


    3BOHFΦϒδΣΫτͱFBDIϝιουΛ࢖ͬͯGPS จͱಉ౳ͷϓϩάϥϜΛهड़Ͱ͖Δ 1FBDISC࣮ߦ
  6. ܁Γฦ͠ͷ੍ޚ w ϧʔϓͷ࠷தʹ ॲཧΛதஅ͢Δ౳ͷॲཧΛߦ͏ ͨΊʹར༻͢Δ ໋ྩ ༻్ CSFBL ॲཧΛதஅ͠ 


    ϧʔϓ͔Βൈ͚Δ OFYU ࣍ͷ܁Γฦ͠ʹॲཧΛҠ͢ SFEP ಉ͡৚݅Ͱ܁Γฦ͠Λ
 ΍Γ௚͢
  7. ܁Γฦ͠ͷ੍ޚ w CSFBLͱOFYUͷྫ 
 CSFBLͷྫ < 1FSM> < 1ZUIPO> 


    
 OFYUͷྫɿ < 1FSM> < 1ZUIPO> < 4DIFNF>
  8. ܁Γฦ͠ͷ੍ޚ w SFEPͷྫ
 
 
 
 
 
 
 J͕ʹͳͬͨͱ͖৚݅͸ͦͷ··Ͱϧʔϓͷઌ಄

    ͔ΒॲཧΛ΍Γ௚͢OFYUͱ͸ҧ͍ ϧʔϓͷ৚ ݅ධՁ͸ߦΘΕͳ͍ʢ͢΂ͯͷཁૉΛग़ྗʣ
  9. ·ͱΊ ໊લ ༻్ UJNFTϝιου ࢦఆճ਺܁Γฦ͢ GPSจ ΦϒδΣΫτ͔ΒཁૉΛ̍ͭͣͭ औΓग़͢ FBDIͷTZOUBYTVHBS XIJMFจ

    ৚݅Λຬ͍ͨͯ͠Δؒ
 ϧʔϓ͍ͨ͠ VOUJMจ ৚݅Λຬ͍ͨͯ͠ͳ͍ؒ ϧʔϓ͍ͨ͠ FBDIϝιου ΦϒδΣΫτ͔Β̍ͭͣͭ
 ཁૉΛऔΓग़͢ MPPQϝιου ແ৚݅ʹϧʔϓͤ͞Δ