
Script zelf doet het, waardes van de Biquads kloppen wss niet. Na filteren is aanspannen niet meer te detecteren
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
main.cpp@3:73ed6985b8d4, 2019-09-10 (annotated)
- Committer:
- linde101
- Date:
- Tue Sep 10 13:04:14 2019 +0000
- Revision:
- 3:73ed6985b8d4
- Parent:
- 2:76d6803aa6e3
- Child:
- 4:2930e35b8e8e
hello world! typen
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RobertoO | 0:67c50348f842 | 1 | #include "mbed.h" |
linde101 | 2:76d6803aa6e3 | 2 | #include "HIDScope.h" |
linde101 | 2:76d6803aa6e3 | 3 | #include "QEI.h" |
RobertoO | 1:b862262a9d14 | 4 | #include "MODSERIAL.h" |
linde101 | 2:76d6803aa6e3 | 5 | #include "BiQuad.h" |
linde101 | 2:76d6803aa6e3 | 6 | #include "FastPWM.h" |
RobertoO | 0:67c50348f842 | 7 | |
linde101 | 3:73ed6985b8d4 | 8 | DigitalOut led(LED_BLUE); |
RobertoO | 0:67c50348f842 | 9 | |
RobertoO | 1:b862262a9d14 | 10 | MODSERIAL pc(USBTX, USBRX); |
RobertoO | 0:67c50348f842 | 11 | |
RobertoO | 0:67c50348f842 | 12 | int main() |
RobertoO | 0:67c50348f842 | 13 | { |
RobertoO | 0:67c50348f842 | 14 | pc.baud(115200); |
RobertoO | 1:b862262a9d14 | 15 | pc.printf("\r\nStarting...\r\n\r\n"); |
RobertoO | 0:67c50348f842 | 16 | |
RobertoO | 0:67c50348f842 | 17 | while (true) { |
RobertoO | 1:b862262a9d14 | 18 | led = !led; |
RobertoO | 0:67c50348f842 | 19 | wait_ms(500); |
linde101 | 3:73ed6985b8d4 | 20 | char c; |
linde101 | 3:73ed6985b8d4 | 21 | c = pc.getc(); |
linde101 | 3:73ed6985b8d4 | 22 | pc.putc(c); |
linde101 | 3:73ed6985b8d4 | 23 | } |
RobertoO | 0:67c50348f842 | 24 | } |
linde101 | 3:73ed6985b8d4 | 25 |