ADD part of mail for pedal device
This commit is contained in:
@@ -82,6 +82,9 @@ class BikeSystem {
|
||||
uint8_t getCurrentGearSize();
|
||||
void setCurrentGear(uint8_t gear);
|
||||
|
||||
void dispatch_isr_events();
|
||||
void dispatch_events();
|
||||
|
||||
// timer instance used for loggint task time and used by ResetDevice
|
||||
std::chrono::microseconds _resetTime = std::chrono::microseconds::zero();
|
||||
std::chrono::microseconds _onGearUpTime = std::chrono::microseconds::zero();
|
||||
@@ -90,16 +93,23 @@ class BikeSystem {
|
||||
Timer _timer;
|
||||
// data member that represents the device for manipulating the gear
|
||||
GearDevice _gearDevice;
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
// shared resources between the main thread and the isr thread
|
||||
uint8_t _currentGear = bike_computer::kMinGear;
|
||||
uint8_t _currentGearSize = bike_computer::kMinGearSize;
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
// data member that represents the device for manipulating the pedal rotation
|
||||
// speed/time
|
||||
PedalDevice _pedalDevice;
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
// shared resources between the main thread and the isr thread
|
||||
float _currentSpeed = 0.0f;
|
||||
float _traveledDistance = 0.0f;
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
// data member that represents the device used for resetting
|
||||
ResetDevice _resetDevice;
|
||||
// data member that represents the device display
|
||||
@@ -126,9 +136,6 @@ class BikeSystem {
|
||||
|
||||
// Tread for isr events
|
||||
Thread _isrEventThread;
|
||||
|
||||
void dispatch_isr_events();
|
||||
void dispatch_events();
|
||||
};
|
||||
|
||||
} // namespace multi_tasking
|
||||
|
||||
Reference in New Issue
Block a user