Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp@1:4fceb43e2dd3, 2016-04-18 (annotated)
- Committer:
- mikeb
- Date:
- Mon Apr 18 18:43:15 2016 +0000
- Revision:
- 1:4fceb43e2dd3
- Parent:
- 0:adae25491b93
- Child:
- 3:fdefe922ce38
V2. Needs filtering fleshed out. Needs more testing. Higher accuracy than previous version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mikeb | 0:adae25491b93 | 1 | #include "mbed.h" |
mikeb | 0:adae25491b93 | 2 | #include "AoA_Est.h" |
mikeb | 0:adae25491b93 | 3 | #include "Phase_Finder.h" |
mikeb | 1:4fceb43e2dd3 | 4 | //#include "arm_conv_f32.c" |
mikeb | 1:4fceb43e2dd3 | 5 | const float b[51] = {-0.007772, -0.003741, -0.004376, -0.004861, -0.005128, -0.005108, -0.004726, -0.003925, -0.002650, -0.000867, 0.001443, 0.004277, 0.007607, 0.011379, 0.015521, 0.019940, 0.024525, 0.029149, 0.033671, 0.037953, 0.041851, 0.045248, 0.048020, 0.050070, 0.051335, 0.251747, 0.051335, 0.050070, 0.048020, 0.045248, 0.041851, 0.037953, 0.033671, 0.029149, 0.024525, 0.019940, 0.015521, 0.011379, 0.007607, 0.004277, 0.001443, -0.000867, -0.002650, -0.003925, -0.004726, -0.005108, -0.005128, -0.004861, -0.004376, -0.003741, -0.007772}; |
mikeb | 0:adae25491b93 | 6 | |
mikeb | 0:adae25491b93 | 7 | int main() { |
mikeb | 0:adae25491b93 | 8 | int x[2] = { 95, -82 }; |
mikeb | 0:adae25491b93 | 9 | int y[2] = { 77, -110 }; |
mikeb | 1:4fceb43e2dd3 | 10 | // arm_conv_f32 ( float32_t * pSrcA, |
mikeb | 1:4fceb43e2dd3 | 11 | // uint32_t srcALen, |
mikeb | 1:4fceb43e2dd3 | 12 | // float32_t * pSrcB, |
mikeb | 1:4fceb43e2dd3 | 13 | // uint32_t srcBLen, |
mikeb | 1:4fceb43e2dd3 | 14 | // float32_t * pDst |
mikeb | 1:4fceb43e2dd3 | 15 | // ) |
mikeb | 0:adae25491b93 | 16 | Phase_Finder phase(50000, 900); |
mikeb | 0:adae25491b93 | 17 | Phase_Finder phase2(50000, 900); |
mikeb | 0:adae25491b93 | 18 | Phase_Finder phase3(50000, 900); |
mikeb | 1:4fceb43e2dd3 | 19 | AoA_Est AoA(3, x, y, 900); |
mikeb | 0:adae25491b93 | 20 | while(1) { |
mikeb | 0:adae25491b93 | 21 | |
mikeb | 0:adae25491b93 | 22 | } |
mikeb | 0:adae25491b93 | 23 | } |