tortuga DataLogging Library: battery, speed, time, average...
Fork of DataLogging by
Diff: BikeData.cpp
- Revision:
- 5:fad416fb6979
- Parent:
- 4:f91f45d52f9b
- Child:
- 6:9079496c6e25
--- a/BikeData.cpp Fri Jul 15 12:48:06 2016 +0000 +++ b/BikeData.cpp Mon Jul 18 09:24:57 2016 +0000 @@ -122,6 +122,10 @@ return lastDistance/Period * 3.6; } +float BikeData::getRPM(){ + return lastCount/PPR*60; + } + uint8_t BikeData::getLastCount(void){ return lastCount; }