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 SoftPWM Servo_softpwm IR2302
Diff: main.cpp
- Revision:
- 1:e385a2004a95
- Parent:
- 0:710db3044013
- Child:
- 2:b8e36dfae8e0
--- a/main.cpp Tue Sep 28 02:09:17 2021 +0000
+++ b/main.cpp Tue Sep 28 02:14:26 2021 +0000
@@ -30,7 +30,7 @@
for(i=0;i<6;i++){
servoValue[i]=(sin(time)+1.0)/2.0;
}
- // サーボの値をservoValueに代入(0度が0,90度が0.5,180度が1.0)
+ // サーボの値をservoValueに代入(0度が0,270度が1.0)
for(int i=0; i<4; i++){
motor[i].setSpeed(sin(2.0*3.14*0.2*t.read())*0.5);
}