NHK2017 octopus robot
Dependencies: 2017NHKpin_config mbed FEP ikarashiMDC PID jy901 omni HMC6352 omni_wheel
Fork of KANI2017v2 by
bot/limitSwitch/limitSwitch.h
- Committer:
- number_key
- Date:
- 2017-09-13
- Revision:
- 23:37bb9afe9fdc
- Child:
- 26:7258d5ad0bff
File content as of revision 23:37bb9afe9fdc:
/** * @file arm_unit.h * @brief 触手機構のStateクラス */ #ifndef LIMITSWITCH_H #define LIMITSWITCH_H #include "mbed.h" #include "pin_config.h" /** * @brief 触手機構のStateクラス */ class Limit { public : /** * @brief コンストラクタ */ Limit(PinName limitSwitch1, PinName limitSwitch2); void frontLimit(); void backLimit(); void resetPosition(); int getPosition(); private : InterruptIn frontSwitch; InterruptIn backSwitch; protected : int position; }; #endif//ARM_UNIT_H