test
TrapezoidControl.cpp@0:2e7bf7fce378, 2019-07-16 (annotated)
- Committer:
- M_souta
- Date:
- Tue Jul 16 06:46:52 2019 +0000
- Revision:
- 0:2e7bf7fce378
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
M_souta | 0:2e7bf7fce378 | 1 | #include "TrapezoidControl.h" |
M_souta | 0:2e7bf7fce378 | 2 | |
M_souta | 0:2e7bf7fce378 | 3 | #include "mbed.h" |
M_souta | 0:2e7bf7fce378 | 4 | #include <stdio.h> |
M_souta | 0:2e7bf7fce378 | 5 | |
M_souta | 0:2e7bf7fce378 | 6 | void TrapezoidControl::reset(void) { |
M_souta | 0:2e7bf7fce378 | 7 | sampling.reset(); |
M_souta | 0:2e7bf7fce378 | 8 | time = 0; |
M_souta | 0:2e7bf7fce378 | 9 | |
M_souta | 0:2e7bf7fce378 | 10 | } |
M_souta | 0:2e7bf7fce378 | 11 | |
M_souta | 0:2e7bf7fce378 | 12 | void TrapezoidControl::start(void) { |
M_souta | 0:2e7bf7fce378 | 13 | sampling.start(); |
M_souta | 0:2e7bf7fce378 | 14 | } |