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.
Diff: main.cpp
- Revision:
- 10:f49df0fe0382
- Parent:
- 9:074575151e4b
- Child:
- 11:133bd48c1b22
--- a/main.cpp Tue May 17 06:44:09 2016 +0000 +++ b/main.cpp Thu May 19 09:30:55 2016 +0000 @@ -157,8 +157,8 @@ ib = ((float) adval2 / 4096.0f * AVDD - I_OFFSET - ib_supp_offset) / I_SCALE; ic = -ia - ib; - float u = ib; - float v = ic; + float u = CURRENT_U; + float v = CURRENT_V; alpha = u; beta = 1 / sqrtf(3.0f) * u + 2 / sqrtf(3.0f) * v;