Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of circle_war_ver_A_NUCLEO_ by
Diff: arm_updown.h
- Revision:
- 14:3403ce49a37a
- Parent:
- 13:7335d90b551a
--- a/arm_updown.h Mon Apr 04 09:26:26 2016 +0000 +++ b/arm_updown.h Tue Apr 05 17:25:09 2016 +0000 @@ -3,7 +3,10 @@ // (pc5.pc6.pa8.pa9)以外のpinを使う #include "mbed.h" - +//赤外線・超音波 +AnalogIn IR_r(PA_1); +AnalogIn IR_l(PB_1); +DigitalInOut uw(PC_4); #define PI 3.14159265f //円周率 //bole target @@ -59,14 +62,12 @@ #include "decision.h" //幹・桜を感知する関数の定義(タイマー割り込み使用) #include "function.h" //pid,valve,interrupt,setup関数を定義 #include "step.h" //各作業段階の動作を定義 - /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +/* int main(){ - setup(); //set-Ticker @@ -87,7 +88,7 @@ }else if(n>2){ expand_sf(); } -/* + //自己位置による条件 if(){//雑木林 set_bole(); @@ -100,10 +101,11 @@ if(){//桜 blossom(); } -*/ + pc.printf("|%d|\t%d\t%f\t%f\t%f\n\r",target,count,dist_n,devi,pwm); wait(0.1); } } +*/ \ No newline at end of file