調整中
Dependencies: mbed HMC6352 US015 TB6612FNG2 getGPS ATP3011
Rotate/Rotate.cpp
- Committer:
- user_
- Date:
- 2021-10-27
- Revision:
- 11:5c0237c3fb1e
- Parent:
- 10:0433f48faf74
- Child:
- 12:0b8b980ba896
File content as of revision 11:5c0237c3fb1e:
void ROttate(double angle) { double time = angle; // 試験で調整してください。 if (angle > 0) { MotorDriver('5', 1); wait(time); MotorDriver('1', 0); } elif (angle < 0) { MotorDriver('6', 1); wait(time); MotorDriver('1', 0); } }