\doxysection{Me\+Encoder\+Motor.\+h}
\hypertarget{_me_encoder_motor_8h_source}{}\label{_me_encoder_motor_8h_source}\index{src/MeEncoderMotor.h@{src/MeEncoderMotor.h}}
\mbox{\hyperlink{_me_encoder_motor_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00049\ \textcolor{preprocessor}{\#ifndef\ MeEncoderMotor\_h}}
\DoxyCodeLine{00050\ \textcolor{preprocessor}{\#define\ MeEncoderMotor\_h}}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00052\ \textcolor{preprocessor}{\#include\ <stdbool.h>}}
\DoxyCodeLine{00053\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{_me_config_8h}{MeConfig.h}}"{}}}
\DoxyCodeLine{00054\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{_me_port_8h}{MePort.h}}"{}}}
\DoxyCodeLine{00055\ }
\DoxyCodeLine{00057\ \textcolor{keyword}{class\ }\mbox{\hyperlink{class_me_encoder_motor}{MeEncoderMotor}}:\ \textcolor{keyword}{public}\ \mbox{\hyperlink{class_me_port}{MePort}}\{}
\DoxyCodeLine{00058\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00067\ \ \ \mbox{\hyperlink{class_me_encoder_motor_acbeab97d3d90a0854155264ddfd1d7bb}{MeEncoderMotor}}(uint8\_t\ addr,uint8\_t\ slot);}
\DoxyCodeLine{00068\ }
\DoxyCodeLine{00075\ \ \ \mbox{\hyperlink{class_me_encoder_motor_acbeab97d3d90a0854155264ddfd1d7bb}{MeEncoderMotor}}(uint8\_t\ slot);}
\DoxyCodeLine{00076\ }
\DoxyCodeLine{00083\ \ \ \mbox{\hyperlink{class_me_encoder_motor_acbeab97d3d90a0854155264ddfd1d7bb}{MeEncoderMotor}}();}
\DoxyCodeLine{00084\ }
\DoxyCodeLine{00099\ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_me_encoder_motor_aeda692228687464c10a47f279b682d53}{begin}}();}
\DoxyCodeLine{00100\ }
\DoxyCodeLine{00115\ \ \ \textcolor{keywordtype}{boolean}\ \mbox{\hyperlink{class_me_encoder_motor_a83b974e7a06af62d268bd251cc118509}{reset}}();}
\DoxyCodeLine{00116\ }
\DoxyCodeLine{00133\ \ \ \textcolor{keywordtype}{boolean}\ \mbox{\hyperlink{class_me_encoder_motor_a10a88a426631d9251a0db96f921f1bcd}{move}}(\textcolor{keywordtype}{float}\ angle,\ \textcolor{keywordtype}{float}\ speed);}
\DoxyCodeLine{00134\ }
\DoxyCodeLine{00151\ \ \ \textcolor{keywordtype}{boolean}\ \mbox{\hyperlink{class_me_encoder_motor_a05f1de71458b1ab75bd34f9c948cc463}{moveTo}}(\textcolor{keywordtype}{float}\ angle,\ \textcolor{keywordtype}{float}\ speed);}
\DoxyCodeLine{00152\ }
\DoxyCodeLine{00169\ \ \ \textcolor{keywordtype}{boolean}\ \mbox{\hyperlink{class_me_encoder_motor_a94231a437d93fe7681fa41024207a28e}{runTurns}}(\textcolor{keywordtype}{float}\ turns,\ \textcolor{keywordtype}{float}\ speed);}
\DoxyCodeLine{00170\ }
\DoxyCodeLine{00185\ \ \ \textcolor{keywordtype}{boolean}\ \mbox{\hyperlink{class_me_encoder_motor_aff4c3a4f790b712a36fff5184927af00}{runSpeed}}(\textcolor{keywordtype}{float}\ speed);}
\DoxyCodeLine{00186\ }
\DoxyCodeLine{00203\ \ \ \textcolor{keywordtype}{boolean}\ \mbox{\hyperlink{class_me_encoder_motor_adc48a3b9f3508aa50b80d00e7fdce178}{runSpeedAndTime}}(\textcolor{keywordtype}{float}\ speed,\ \textcolor{keywordtype}{float}\ time);}
\DoxyCodeLine{00204\ }
\DoxyCodeLine{00219\ \ \ \textcolor{keywordtype}{float}\ \mbox{\hyperlink{class_me_encoder_motor_a7ff4246627c94976d97141da3a31ad00}{getCurrentSpeed}}();}
\DoxyCodeLine{00220\ }
\DoxyCodeLine{00235\ \ \ \textcolor{keywordtype}{float}\ \mbox{\hyperlink{class_me_encoder_motor_a3e0f684f694a4ace231ac8fe90c68c62}{getCurrentPosition}}();}
\DoxyCodeLine{00236\ }
\DoxyCodeLine{00237\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00258\ \ \ \textcolor{keywordtype}{void}\ request(\textcolor{keywordtype}{byte}\ *writeData,\ \textcolor{keywordtype}{byte}\ *readData,\ \textcolor{keywordtype}{int}\ wlen,\ \textcolor{keywordtype}{int}\ rlen);}
\DoxyCodeLine{00259\ }
\DoxyCodeLine{00260\ \ \ uint8\_t\ \_slot;\ \ \ \ }
\DoxyCodeLine{00261\ \ \ uint8\_t\ \_slaveAddress;}
\DoxyCodeLine{00262\ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{long}\ \_lastTime;}
\DoxyCodeLine{00263\ \};}
\DoxyCodeLine{00264\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
