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.
QMotor.h
00001 /*********** 00002 *絶対にQ-rover-Kaiを50行以内で動かすという強い気持ち 00003 ***********/ 00004 #include "mbed.h" 00005 00006 #ifndef QMOTOR_H 00007 #define QMOTOR_H 00008 00009 00010 00011 class QMotor{ 00012 public: 00013 QMotor(PinName R1,PinName R2,PinName L1,PinName L2); 00014 00015 void Front1(); 00016 void Front2(); 00017 void Right1(float an,float san); 00018 void Right2(float an,float san); 00019 void Left1(float an,float san); 00020 void Left2(float an,float san); 00021 void Reverse(); 00022 void Stack(); 00023 void Fred(); 00024 00025 private: 00026 PwmOut _R1; 00027 PwmOut _R2; 00028 PwmOut _L1; 00029 PwmOut _L2; 00030 }; 00031 void Front1(); 00032 void Front2(); 00033 void Right1(float *sec); 00034 void Right2(float *sec); 00035 void Left1(float *sec); 00036 void Left2(float *sec); 00037 void Reverse(); 00038 void Fred(); 00039 void Stack(); 00040 00041 #endif
Generated on Fri Jul 22 2022 04:45:50 by
