Drehen mit Halt und offset um zum Klotz zurück drehen. (Kann nur ein klotz aufheben)
Fork of DrehungMitStopp by
MotorEncoder.h
00001 #ifndef MOTOR_ENCODER_H 00002 #define MOTOR_ENCODER_H 00003 00004 #include <cstdlib> 00005 #include <mbed.h> 00006 00007 //E. Hess 00008 //MotorEncoder.h 00009 00010 class MotorEncoder { 00011 public: 00012 MotorEncoder(PinName a, PinName b); 00013 virtual ~MotorEncoder(); 00014 void reset(); 00015 void reset(short offset); 00016 short read(); 00017 operator short(); 00018 00019 private: 00020 TIM_TypeDef* TIM; 00021 }; 00022 00023 #endif
Generated on Wed Jul 13 2022 01:25:06 by 1.7.2