Pacemaker code Implementation for SFWRENG 3K04
Dependencies: FXOS8700Q Queue mbed-rtos mbed
Fork of Pacemaker by
voor.cpp@11:35b259e70c9a, 2016-11-15 (annotated)
- Committer:
- trane3
- Date:
- Tue Nov 15 21:27:46 2016 +0000
- Revision:
- 11:35b259e70c9a
- Parent:
- 8:75c1dd8b0d61
- Child:
- 18:aef2f75f216b
- Child:
- 19:d58e1e1a9a24
modified voor mode pulsing
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
trane3 | 7:4eb590c7e064 | 1 | #pragma once |
trane3 | 7:4eb590c7e064 | 2 | #include "mbed.h" |
trane3 | 7:4eb590c7e064 | 3 | #include "voor.h" |
trane3 | 8:75c1dd8b0d61 | 4 | #include "pulse.h" |
trane3 | 7:4eb590c7e064 | 5 | |
trane3 | 8:75c1dd8b0d61 | 6 | voor::voor(){} |
trane3 | 8:75c1dd8b0d61 | 7 | |
trane3 | 8:75c1dd8b0d61 | 8 | voor::voor(pulse* p){ |
trane3 | 8:75c1dd8b0d61 | 9 | voorPulse = p; |
trane3 | 7:4eb590c7e064 | 10 | } |
trane3 | 7:4eb590c7e064 | 11 | |
trane3 | 8:75c1dd8b0d61 | 12 | voor::~voor(){}; |
trane3 | 8:75c1dd8b0d61 | 13 | |
trane3 | 8:75c1dd8b0d61 | 14 | void voor::startPace(){ |
trane3 | 11:35b259e70c9a | 15 | while (true){ |
trane3 | 11:35b259e70c9a | 16 | voorPulse->startPulse(); |
trane3 | 11:35b259e70c9a | 17 | //startPulse(); |
trane3 | 11:35b259e70c9a | 18 | } |
trane3 | 8:75c1dd8b0d61 | 19 | } |
trane3 | 8:75c1dd8b0d61 | 20 | |
trane3 | 8:75c1dd8b0d61 | 21 | void voor::setPacingMode(int i){ |
trane3 | 8:75c1dd8b0d61 | 22 | y_pacingMode = i; |
trane3 | 11:35b259e70c9a | 23 | } |
trane3 | 11:35b259e70c9a | 24 |