Railway Challenge
/
challenge-2022Fork
Commented out energgy sotrage code to rever to old state
dashboard.h
- Committer:
- rwcjoliver
- Date:
- 2020-03-13
- Revision:
- 0:4788e1df7b55
- Child:
- 36:5c61710813b3
File content as of revision 0:4788e1df7b55:
#ifndef _DASHBOARD_H_ #define _DASHBOARD_H_ #include <mbed.h> class Dashboard { public: Dashboard(InterruptIn& hallSensor); // CONSTRUCTOR void tachoInterrupt(); void getCurrentSpeed(); int currentSpeed; float currentDistance; private: InterruptIn& _hallSensor; Timer tachoTimer; int passedTime_ms; float passedTime; float lastTime; float wheelFreq; float wheelCircumference; int numberOfMagnets; int tachoCounter; int currentTime; }; #endif