基本クラス
Dependents: 300_PS3com Quadrifoglio_PS3COM
Master.cpp
- Committer:
- piroro4560
- Date:
- 2022-06-23
- Revision:
- 4:c9ef83cbe905
- Parent:
- 3:9b1aefdd251a
File content as of revision 4:c9ef83cbe905:
#include "Master.h" Master::Master() : pc(USBTX, USBRX, 115200) ,shot(Pin_Kicker) ,drib(Pin_Dribbler) { motor[0] = new KohiMD(Pin_motor_0); motor[1] = new KohiMD(Pin_motor_1); motor[2] = new KohiMD(Pin_motor_2); motor[3] = new KohiMD(Pin_motor_3); shot.setkickperiod(Kicker_Period); shot.setoutputtime(Kicker_OutPutTime); drib.setspeed(0.0); } void Master::Shot() { shot.outPut(); } void Master::Dribble(float power) { drib.setspeed(power); } void Master::SetValueMotor(int num, double val) { motor[num]->setSpeed(val); }