GAMMA_A
Dependencies: DataPool MD_PID mbed
2017_3_b/2017_3_b.h
- Committer:
- hirotayamato
- Date:
- 2017-08-25
- Revision:
- 2:158fea945e51
- Parent:
- 0:6ed41770a6b7
File content as of revision 2:158fea945e51:
#ifndef _OMNI_3_H_ #define _OMNI_3_H_ #include "mbed.h" #include "MD.h" #include "MD_PID.h" class Omni_3{ public: Omni_3(PinName pin_pwm_F, PinName pin_dere_F, PinName pin_channelA_F, PinName pin_channelB_F, PinName pin_pwm_L, PinName pin_dere_L, PinName pin_channelA_L, PinName pin_channelB_L, PinName pin_pwm_R, PinName pin_dere_R, PinName pin_channelA_R, PinName pin_channelB_R, int rev = 1); void Drive( double arg_x, double arg_y, double arg_rota); private: void Matrix(double speed[3], double duty[3]); int rev; MD_PID *md_f; MD_PID *md_l; MD_PID *md_r; }; #endif