Zumo32U4 library
Zumo32U4Encoders.h
Go to the documentation of this file.
1 // Copyright Pololu Corporation. For more information, see http://www.pololu.com/
2 
5 #pragma once
6 
7 #include <stdint.h>
8 
26 {
27 
28 public:
29 
34  static void init()
35  {
36  static bool initialized = 0;
37  if (!initialized)
38  {
39  initialized = true;
40  init2();
41  }
42  }
43 
52  static int16_t getCountsLeft();
53 
56  static int16_t getCountsRight();
57 
61  static int16_t getCountsAndResetLeft();
62 
65  static int16_t getCountsAndResetRight();
66 
79  static bool checkErrorLeft();
80 
83  static bool checkErrorRight();
84 
85 private:
86 
87  static void init2();
88 };
Reads counts from the encoders on the Zumo 32U4.
static int16_t getCountsLeft()
static int16_t getCountsAndResetRight()
static int16_t getCountsAndResetLeft()
static bool checkErrorRight()
static bool checkErrorLeft()
static int16_t getCountsRight()
static void init()