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.
Dependencies: mbed-dev-f303 FastPWM3
Diff: Transforms/Transforms.cpp
- Revision:
- 5:51c6560bf624
- Parent:
- 1:b8bceb4daed5
- Child:
- 7:dc5f27756e02
--- a/Transforms/Transforms.cpp Sat Mar 12 08:04:51 2016 +0000 +++ b/Transforms/Transforms.cpp Sat Mar 12 18:45:22 2016 +0000 @@ -9,6 +9,8 @@ float sine = sin(theta); *d = alpha*cosine - beta*sine; *q = -beta*cosine - alpha*sine; + //*d = alpha*cosine + beta*sine; + //*q = beta*cosine - alpha*sine; //DAC->DHR12R1 = (int) (*q*49.648f) + 2048; //DAC->DHR12R1 = (int) (*q*2048.0f) + 2048; }