Octopus!!
Dependencies: 2017NHKpin_config FEP HMC6352 PID QEI R1307 ikarashiMDC omni_wheel
Fork of KANIv3 by
bot/bot.h
- Committer:
- takeuchi
- Date:
- 2017-10-06
- Branch:
- develop
- Revision:
- 32:b619c7787dc3
- Parent:
- 28:676330f1d186
- Child:
- 36:c1398ea8f604
File content as of revision 32:b619c7787dc3:
/** * @file bot.h * @brief ロボットのクラス */ #ifndef BOT_H #define BOT_H #include "mbed.h" #include "pin_config.h" #include "controller.h" #include "PID_controller.h" #include "slider.h" #include "wheel_unit.h" const int SWORD = 1; const int DESTROY = 2; const float ADJUST_DEGREE = 5.0; /** * @brief ロボットのクラス */ class Bot { public : /** * @brief コンストラクタ */ Bot(); /** * @brief センサなどの値を更新 */ void confirmAll(); /** * @brief 足回りの制御 */ void controllDrive(); void controllDrive2(); void controllDrive3(); /** * @brief 機構部の制御 */ void controllMech(); /** * センサのキャリブレーション */ void calibrate(); private : Controller pad; Serial RS485; DigitalOut RS485Controller; DigitalOut powerSwitch; WheelUnit quadOmni; Slider slider; ikarashiMDC armMotor[3]; PIDC plane; PIDC axis; bool receiveSuccessed; float frontDegree; DigitalOut led[3]; Serial debugSerial; Timer t; }; #endif//BOT_H