![](/media/cache/profiles/P1030212_resized.JPG.50x50_q85.jpg)
明石高専ロボ研 mbedライブラリ
Dependents: MDD_L432KC USB2RS485 pathtracking odometry ... more
Diff: rotary_inc.hpp
- Revision:
- 3:28c77df7c0b6
- Parent:
- 0:ca84ed7518f5
--- a/rotary_inc.hpp Fri Jan 03 02:37:48 2020 +0000 +++ b/rotary_inc.hpp Mon Jan 06 11:06:26 2020 +0000 @@ -14,15 +14,15 @@ class RotaryInc{ public: - RotaryInc(PinName userA, PinName userB,double circumference,int resolution,int mode = 0);//速度計測有効 - RotaryInc(PinName userA, PinName userB,int mode = 0);//速度計測無効 + RotaryInc(PinName user_a, PinName user_b,double circumference,int resolution,int mode = 0);//速度計測有効 + RotaryInc(PinName user_a, PinName user_b,int mode = 0);//速度計測無効 ~RotaryInc(); long long get(); double getSpeed(); void reset(); int diff(); private: - InterruptIn *A_,*B_; + InterruptIn *pin_a_,*pin_b_; Timer timer_; long long pulse_; long long last_[20];