diff --git a/LmEncoderOnBoardMotor_8cpp.html b/LmEncoderOnBoardMotor_8cpp.html index cc0908e..33acdfe 100644 --- a/LmEncoderOnBoardMotor_8cpp.html +++ b/LmEncoderOnBoardMotor_8cpp.html @@ -67,6 +67,8 @@
+
+Enumerations
LmEncoderOnBoardMotor.cpp File Reference
@@ -78,7 +80,16 @@ #include "LmTimer.h"
#include <math.h>
#include <float.h>
-

Detailed Description

+ + + + +

+Enumerations

enum  { NEW +, ON +, OFF + }
 
+

Detailed Description

Simplified controll of Makeblock mBot Ranger on board Motor Encoder.

Author
Lars Möllendorf lars@.nosp@m.moel.nosp@m.lendo.nosp@m.rf.e.nosp@m.u
diff --git a/LmEncoderOnBoardMotor_8h_source.html b/LmEncoderOnBoardMotor_8h_source.html index 251854f..031d17d 100644 --- a/LmEncoderOnBoardMotor_8h_source.html +++ b/LmEncoderOnBoardMotor_8h_source.html @@ -83,52 +83,57 @@
20 
21  public:
22 
-
29  EncoderOnBoardMotor(int slot);
-
30 
-
37  void rotate(long angle, float speed = 100);
-
38 
-
46  void rotate(long angle, float speed, bool block);
-
47 
-
57  void rotate(long angle, float speed, bool block, bool sync);
-
58 
-
64  void forward(float speed);
-
65 
-
69  void stop(void);
-
70 
-
74  void resetTachoCount(void);
-
75 
-
81  int getTachoCount(void);
-
82 
-
83  private:
-
84 
-
89  EncoderOnBoardMotor(int slot, float ratio);
-
90  static MeEncoderOnBoard encoder1;
-
91  static MeEncoderOnBoard encoder2;
-
92  static bool pos_reached[2];
-
93  static bool synced;
-
94  static void isrProcessEncoder1(void);
-
95  static void isrProcessEncoder2(void);
-
96  static void positionReached(int16_t slot, int16_t ext_id);
-
97  static bool isPositionReached(int16_t slot);
-
98  static bool arePositionsReached(void);
-
99  static void resetPositionReached(int16_t slot);
-
100  static void setSynced(bool on);
-
101  static bool getSynced(void);
-
102  static void syncCurrentSpeed(void);
-
103  static void loop(void);
-
104  static int slot2Index(int slot);
-
105  static MeEncoderOnBoard *slot2Encoder(int slot);
-
106  int slot;
-
107 };
-
108 
-
110 #endif
+
30  EncoderOnBoardMotor(int slot);
+
31 
+
38  void rotate(long angle, float speed = 100);
+
39 
+
47  void rotate(long angle, float speed, bool block);
+
48 
+
58  void rotate(long angle, float speed, bool block, bool sync);
+
59 
+
65  void forward(float speed);
+
66 
+
70  void stop(void);
+
71 
+
75  void resetTachoCount(void);
+
76 
+
82  int getTachoCount(void);
+
83 
+
84  private:
+
85 
+
90  EncoderOnBoardMotor(int slot, float ratio);
+
91  static MeEncoderOnBoard encoder1;
+
92  static MeEncoderOnBoard encoder2;
+
93  static bool pos_reached[2];
+
94  static bool synced;
+
95  static void isrProcessEncoder1(void);
+
96  static void isrProcessEncoder2(void);
+
97  static void positionReached(int16_t slot, int16_t ext_id);
+
98  static bool isPositionReached(int16_t slot);
+
99  static bool arePositionsReached(void);
+
100  static void resetPositionReached(int16_t slot);
+
101  static void setSynced(bool on);
+
102  static bool getSynced(void);
+
103  static void syncCurrentSpeed(void);
+
104  static void loop(void);
+
105  static int slot2Index(int slot);
+
106  static MeEncoderOnBoard *slot2Encoder(int slot);
+
107  int slot;
+
108  static void indicateBatteryPower(void);
+
109  static bool on;
+
110  static int state;
+
111  static int counter;
+
112  static int level;
+
113 };
+
114 
+
116 #endif
Definition: LmEncoderOnBoardMotor.h:19
-
int getTachoCount(void)
Definition: LmEncoderOnBoardMotor.cpp:224
-
void stop(void)
Definition: LmEncoderOnBoardMotor.cpp:209
-
EncoderOnBoardMotor(int slot)
Definition: LmEncoderOnBoardMotor.cpp:69
-
void rotate(long angle, float speed=100)
Definition: LmEncoderOnBoardMotor.cpp:170
-
void resetTachoCount(void)
Definition: LmEncoderOnBoardMotor.cpp:216
-
void forward(float speed)
Definition: LmEncoderOnBoardMotor.cpp:198
+
int getTachoCount(void)
Definition: LmEncoderOnBoardMotor.cpp:275
+
void stop(void)
Definition: LmEncoderOnBoardMotor.cpp:260
+
EncoderOnBoardMotor(int slot)
Definition: LmEncoderOnBoardMotor.cpp:120
+
void rotate(long angle, float speed=100)
Definition: LmEncoderOnBoardMotor.cpp:221
+
void resetTachoCount(void)
Definition: LmEncoderOnBoardMotor.cpp:267
+
void forward(float speed)
Definition: LmEncoderOnBoardMotor.cpp:249