Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
encoders.h
- Committer:
- rzalog
- Date:
- 2019-05-05
- Revision:
- 0:7a97ebb833eb
File content as of revision 0:7a97ebb833eb:
#pragma once
/***
* Assignment 2
*
* Experimentally determine this value.
***/
const float COUNTS_FOR_CELL = 0; // TODO
class Encoder {
public:
Encoder();
void reset() volatile;
void update() volatile;
int right() volatile;
int left() volatile;
void printValues() volatile;
private:
volatile int m_countR;
volatile int m_countL;
};